Salesforce Certified Omnistudio Consultant free question 5 / 10 · Domain 3: Omniscripts
When a customer submits an Omniscript, the business wants a Salesforce platform event published so that other systems can react. Which Omnistudio component should the consultant use in the Omniscript to fire the event?
- A Data Mapper Load action that populates the platform event fields
- A Data Mapper Extract action that reads the platform event object in the org
- A Formula element that builds the event payload as text
- A Messaging element that sends the event details to the user
Show the answer and explanation
Answer: A
Why this is correct
The Fire Platform Events from Omniscripts page lists the steps: define the platform event in Setup, create a Data Mapper Load that populates the platform event fields, compose the data JSON the Load needs, and add a Data Mapper Load action to the Omniscript that specifies the Load. The Load is what fires the event. The other components read data, calculate values, or display messages.
Why the other options are wrong
"A Data Mapper Extract action that reads the platform event object in the org" … A Data Mapper Extract reads Salesforce data. It does not populate and publish an event.
"A Formula element that builds the event payload as text" … A Formula element calculates values from other elements. It does not publish anything to the event bus.
"A Messaging element that sends the event details to the user" … A Messaging element shows comments, requirements, and warnings in the Omniscript. It does not fire a platform event.
Key points
To publish a platform event from an Omniscript, use a Data Mapper Load action that writes the event fields.