Salesforce Certified Omnistudio Developer free question 4 / 10 · Domain 3: Omniscripts
An Action Block in a step holds a Remote Action that writes usage data to an external log. The Omniscript does not need the response, and users must not wait for the call to finish. Which Invoke Mode fits this Action Block?
- Fire and Forget, so the action runs asynchronously and skips the callback to the UI
- Non-Blocking, so the action runs asynchronously and the Omniscript continues
- Non-Blocking, with the response mapped by using VlocityNoRootNode as the response node
- Default, so the action blocks the UI with a loading spinner until the call returns
Show the answer and explanation
Answer: A
Why this is correct
The Invoke Mode of an Action Block controls how the actions inside it run. Default blocks the UI with a loading spinner, and Fire and Forget runs asynchronously with no callback to the UI. A response still appears in the debug console but doesn't apply to the data JSON.
Why the other options are wrong
"Non-Blocking, so the action runs asynchronously and the Omniscript continues" … The Help lists Fire and Forget as the asynchronous mode with no callback to the UI, which is what the usage log call needs.
"Default, so the action blocks the UI with a loading spinner until the call returns" … The Default mode blocks the UI with a loading spinner, which makes users wait for the logging call to finish.
"Non-Blocking, with the response mapped by using VlocityNoRootNode as the response node" … The response mapping settings listed on the page apply when Invoke Mode is set to non-blocking, and the usage log call needs no mapping.
Key points
Default blocks the UI. Fire and Forget sends the call and ignores the answer.