Hi All,
I'm currently working on an omniscript and I'm struggling to figure out how I can store the output of a new record ID in order to reference and update the same record in the omniscript - here's an outline of what I'm trying to achieve:
- Step 1: customer provides address inputs (complete)
- Integration Procedure (with load dataraptor): creates new record (complete)
- How can I store the ID of this new record as variable (similar to how you can in lightning flows) - (still trying to determine how to do this)
- Outside of omnistudio: google APIs trigger/Apex classes run logic to set data on new record (complete)
- Extract the new record and use fields set by apex trigger/classes - ideally by record ID from integration procedure after Step 1
- Step 2/3: dynamically display components based on the values fetched from new record
- Integration Procedure (with load dataraptor): update the initially saved record (from the output record ID created in IP/DR used in step 1) using upsert key in IP/DR
TLDR;
Is there any way, similar to flows, that I can store the variable of the new record and reference it in other IPs/DRs in the same omniscript to update the record?
Hi per my understanding you have the JSON response in integration procedure and you can intercept for sure the id, like in this example https://trailhead.salesforce.com/content/learn/modules/omnistudio-integration-procedures/build-simple-integration-procedures.
Then on specific IP on Omniscript you'll have your output fields and the passing it to other IPs/DR