A developer needs to configure a calculation procedure to calculate the sum of the entire base price.
What is the most efficient way for the developer to meet this requirement?
Show answerHide answer
Correct answer: BAdd an Aggregation Step as SUM (BasePrice)
Explanation
Summary
The requirement is to calculate the sum of a specific field (BasePrice) across all records in a dataset. This is a classic aggregation operation. The most efficient method is to perform this calculation at the database level or within the data processing engine, which is designed for such operations, rather than moving the data into a more complex, custom-coded environment like Apex.
Correct Option
B. Add an Aggregation Step as SUM (BasePrice)
This is the most efficient solution. An Aggregation Step within a DataRaptor Transform is specifically designed for this purpose. It performs the SUM operation directly on the dataset as it is being processed by the OmniStudio engine. This is a declarative and optimized approach that avoids the overhead of Apex and efficiently calculates the total without requiring custom code.
Incorrect Option
A. Create a Postprocessor Apex class to calculate the sum.
This is inefficient and against best practices. A Postprocessor Apex class would require the entire dataset to be passed into Apex, where a loop would then be written to calculate the sum. This is a programmatic and resource-intensive approach for a simple aggregation that the platform's declarative tools can handle more efficiently.
C. Add a Calculation Step as SUM (BasePrice).
A Calculation Step in a DataRaptor Transform is used to create a new calculated field for each individual record (e.g., LineTotal = Quantity * UnitPrice). It cannot perform an aggregation (like SUM, COUNT) across all records in the dataset. It operates on a row-by-row basis, not on the entire dataset.
D. Create a Preprocessor class to calculate the sum.
A Preprocessor Apex class runs before the DataRaptor and is typically used to modify input data. It does not have access to the full dataset of records that the DataRaptor will process, so it cannot calculate a sum of a field across all records. This is the wrong tool for the job.
Reference
Salesforce OmniStudio Developer Guide: Aggregation Step in DataRaptor Transform
What should a developer's first step be when troubleshooting whether a DataRaptor Extract is retrieving data?
Show answerHide answer
Correct answer: BGo to the PREVIEW tab In OmniScript to test.
Explanation
Summary
When troubleshooting a DataRaptor Extract, the most efficient first step is to use the integrated Preview tab within the DataRaptor interface itself. This tool allows you to execute the DataRaptor in isolation by providing a sample JSON input. It immediately shows the output or any errors, confirming whether the issue lies within the DataRaptor's configuration (like the JSON extract map) or elsewhere in the integration.
Correct Option
B. Go to the PREVIEW tab In OmniScript to test.
This is the correct first step because the Preview tab is a dedicated, controlled environment for testing DataRaptors. You can provide a specific input JSON that mimics what your OmniScript would send, and the tab will display the exact output the DataRaptor returns.
This isolates the DataRaptor's functionality. If it fails here, the problem is definitively within the DataRaptor's configuration (e.g., an incorrect field mapping or object relationship). If it works here, the issue likely lies in how it's being called from the OmniScript or Integration Procedure.
Incorrect Option
A. Go to the Lightning Console and reload the page to test.
This is an inefficient first step. Reloading an entire application page involves many other components (the OmniScript, layouts, other data sources). It does not isolate the DataRaptor, making it difficult to pinpoint the root cause of the data retrieval issue.
C. Deactivate the card and layout, and go to the PREVIEW tab for the card to test.
This approach is overly complex and indirect for the stated goal. The Card's Preview tab tests the entire card, not just the DataRaptor. Deactivating components is unnecessary when a direct testing tool for the specific component in question is available.
D. Add a key/value pair in the DataRaptor to test it.
Modifying the DataRaptor by adding new elements should not be the first troubleshooting step. The correct initial action is to diagnose the current configuration using the Preview tool. Making changes before understanding the problem can introduce new errors and is not a systematic debugging approach.
Reference
Salesforce OmniStudio Developer Guide: Test a DataRaptor
Question 23Select all that apply
A developer creates an Integration Procedure with a Set Values and a DataRaptor Extract Action that requires AccountId as a key. When the developer previews the Integration Procedure, thedeveloper enters the AccountId correctly and execute the Preview. The developer sees the data extract by the DataRaptor in the Debug Log, but the response is empty.
What is the likely cause of this issue?
Show answerHide answer
Correct answer: CA Response Action was not added to the integration Procedure.
Explanation
Summary
The issue is that while the DataRaptor runs successfully (as seen in the Debug Log), its extracted data is not being included in the final response of the Integration Procedure. An Integration Procedure's response is built by explicitly defining what data to return. Without a final step to package the data, the procedure will execute all actions but return an empty JSON object to the calling client.
Correct Option
C. A Response Action was not added to the Integration Procedure.
The Response Action is a dedicated element that must be the final step in an Integration Procedure. Its purpose is to define the structure of the JSON response. Even if previous actions like a DataRaptor Extract run correctly and store data in the pipeline, this data is not automatically sent back. Without a Response Action to map the pipeline data into the response, the output will always be empty.
Incorrect Option
A. The DataRaptor Action did not have the Add Response To Response JSON property set to true.
This property is used to merge a DataRaptor's output directly into the final response JSON, which can be useful in specific cases. However, it is not the primary or required method for returning data. A properly configured Response Action can return the data regardless of this setting on the individual DataRaptor action.
B. The Response cannot be previewed directly.
This is incorrect. The Preview tab for an Integration Procedure is specifically designed to show the final JSON response. If the Integration Procedure is configured correctly with a Response Action, the preview will display the returned data. The ability to preview the response is a core feature of the tool.
D. The AccountId used for the preview is invalid.
The scenario states that the developer "sees the data extracted by the DataRaptor in the Debug Log." This is definitive proof that the DataRaptor ran successfully and found data for the provided AccountId. If the ID were invalid, the DataRaptor would have returned an empty result or an error, which would be visible in the debug log.
A developer is troubleshooting an Integration Procedure with two elements: A Remote Action named FetchCart and a Response Action namedResponseCart.
In Preview, what JSON node shows the data sent to the Response Action?
Show answerHide answer
Correct answer: DResponseCart
Explanation
Summary
When previewing an Integration Procedure, the output panel shows a detailed JSON structure representing the execution. Each element in the procedure has its own node containing its specific result. The Response Action is the final element that defines the procedure's output, and its results are displayed in a node named after the action itself, allowing developers to verify the exact data being returned.
Correct Option
D. ResponseCart
This is the correct node. In the Integration Procedure's preview debug output, each action has a dedicated JSON node named after the action's "Name" property. The ResponseCart node will contain the final, structured JSON output as defined by the mapping within that specific Response Action. This is the definitive data that the Integration Procedure would send back to the calling OmniScript or application.
Incorrect Option
A. FetchCart
The FetchCart node shows the input, output, and debug information for the Remote Action, not the Response Action. It displays the request sent to the external service and the raw response received from it, which is the data that will be fed into the pipeline for the Response Action to use.
B. Response
While "Response" is the type of the action, it is not the node name used in the debug output. The preview uses the custom name assigned to the action instance by the developer (in this case, ResponseCart), not its generic type. The node Response does not exist in this context.
C. ResponseCartDebug
This is a fabricated node name. The debug output does not append "Debug" to action names. The primary output and result of the Response Action named ResponseCart is contained directly within the ResponseCart node itself.
Reference
Salesforce OmniStudio Developer Guide: Test an Integration Procedure
Question 25Choose 2
A developer configures a FlexCard with a Data Mapper data source that uses the
params.id as an input. When the developer clicks "View Data" on the FlexCard, valid data
displays. However, when the developer previews the layout, the FlexCard does not display.
What could cause this error? Choose 2 answers
Show answerHide answer
Correct answer: B, CThere is no Salesforce record for the FlexCard based on the RecordId in the layout's
Test Data Source Settings.The Data Node field for the FlexCard is empty.
Explanation
Explanation:
B. No Salesforce record for the RecordId in Test Data Source Settings
The Test Data Source Settings in a FlexCard layout determine which record is used during preview.
If the RecordId provided doesn’t exist in Salesforce (or points to a deleted/nonexistent record), the FlexCard will fail to display in preview.
This explains why “View Data” works (it uses the Data Mapper directly with params.id), but preview fails (it relies on the layout’s test settings).
C. Data Node field is empty
The Data Node defines the root of the JSON structure that the FlexCard binds to.
If the Data Node field is left empty, the FlexCard has no reference point to map the incoming data to its UI elements.
Result: Even though data is retrieved, nothing is displayed in the FlexCard preview.
❌ Why not A or D?
A. Wrong RecordId type → If the RecordId is of the wrong type, Salesforce would still return data (or an error). The key issue here is no record at all, not wrong type.
D. Attributes not configured → Attributes are used to pass data between parent and child FlexCards or OmniScripts. In this case, the FlexCard is directly bound to the Data Mapper, so missing attributes wouldn’t prevent display.
📚 Reference
Salesforce OmniStudio Docs: FlexCards Data Source Configuration
Key principle: FlexCard preview depends on valid Test Data Source settings and a properly defined Data Node.
👉 Memory tip for the exam:
If “View Data” works but preview fails → check Test Data Source settings and Data Node.
Question 26Choose 2
Users receive an APEC CPU limit Exceeded error when running an OmniScript in a Salesfoce Community. The OmniScript includes an Integration Procedure that contains two DataRaptors.
Which two Location should the developer check to troubleshoot the issue? (Choose 2 answers)
Summary
An Apex CPU limit error indicates that the OmniScript's server-side logic is consuming excessive processing time. Since the error is tied to an Integration Procedure containing DataRaptors, the investigation must focus on the components executing server-side Apex code. The configuration of the DataRaptors and the detailed execution logs of the actions are the primary sources to identify inefficient queries or complex transformations causing the performance bottleneck.
Correct Option
C. DataRaptor configuration
The DataRaptor configuration is a primary suspect. Inefficient DataRaptor Extracts, especially those without filters or that query large data sets, can consume significant CPU time. Similarly, complex DataRaptor Transforms with numerous formulas or loops can be computationally expensive. Reviewing the DataRaptor logic for optimizations, such as adding LIMIT clauses or simplifying transformations, is a critical troubleshooting step.
D. Action Debugger
The Action Debugger in the OmniScript and Integration Procedure preview tools provides detailed, step-by-step execution logs. It shows the precise execution time and output for each action, including the two DataRaptors. This allows the developer to pinpoint exactly which action is consuming the most CPU time, confirming whether it is a specific DataRaptor or another element in the sequence.
Incorrect Option
A. Script configuration
While general OmniScript settings exist, there is no specific "Script configuration" that directly controls CPU usage or would reveal the root cause of a CPU limit error. The problem is almost always tied to the logic within the actions (like DataRaptors) called by the script, not the high-level script properties themselves.
B. Community logs
Community logs are general system logs that might show the occurrence of the error but lack the granular, component-level detail needed to diagnose it. They will not show which specific DataRaptor or action within the Integration Procedure is causing the high CPU consumption. The OmniStudio-specific Action Debugger is the correct tool for this level of detail.
Reference
Salesforce OmniStudio Developer Guide: Test an Integration Procedure
The account information must always be visible, and the contact information should only be visible as needed by the user.
What approach should the developer use to display the contact information on the card?
Show answerHide answer
Correct answer: CSet the collapsible property on the block element
Explanation
Explanation:
Account information must always be visible → This should be placed in a standard block or text elements on the FlexCard, no conditional logic needed.
Contact information should only be visible when needed → The best pattern is to place the contact details inside a block element and then set its collapsible property.
This adds an expand/collapse toggle, allowing the user to click and show/hide the content on demand.
This is a common design choice when you want "on-demand visibility" for secondary information.
❌ Why the other options are incorrect:
A. Use a Data table element → A data table is for listing multiple records (e.g., lists of contacts), not for selectively showing details about a single contact. Doesn’t solve the show/hide requirement.
B. Set the class ‘collapsible’ on the block element → This isn’t the right approach. You don’t manually set a CSS class to make FlexCard elements collapsible. There’s a built-in property for that.
D. Use a conditional FlexCard State → States are used to render different layouts based on conditions (e.g., error, active, inactive). Not appropriate here — we don’t want different layouts, just toggled visibility.
📖 Reference:
Salesforce OmniStudio FlexCard Designer Guide → Block Elements:
“Block elements can be configured with the collapsible property, which lets users expand or collapse the section content.”
Question 28Choose 2
When launching an OmniScript from an action on a FlexCard, the OmniScript displays, but no Salesforce data is populated:
Which two errors could cause this behavior?
(Choose 2 answers)
Show answerHide answer
Correct answer: A, DThe Id Field for Actions in the FlexCard is blank.In the DataRaptor Extract Action, the Input Parameters Filter Value is misspelled.
Explanation
Summary
When an OmniScript launches from a FlexCard but fails to display Salesforce data, the issue is typically a broken data bridge between the card and the script. The FlexCard must pass the correct record ID to the OmniScript, and the OmniScript's DataRaptor must be configured to receive and use that ID to fetch data. The problem lies in this handoff or data retrieval configuration, not in the activation state of the components.
Correct Option
A. The Id Field for Actions in the FlexCard is blank.
This is a primary cause. For the OmniScript to load data for a specific record, the FlexCard's action must pass the record ID. If the "Id Field for Actions" property is blank, the FlexCard sends a null ID to the OmniScript. Consequently, the DataRaptor Extract inside the OmniScript has no record to query, resulting in empty data fields.
D. In the DataRaptor Extract Action, the Input Parameters Filter Value is misspelled.
This directly breaks the data retrieval. The OmniScript receives the ID from the FlexCard as a variable. This variable must be correctly mapped to the DataRaptor's input parameter. A misspelled filter value means the DataRaptor does not receive the ID, causing it to run without a filter and return no data for the intended record.
Incorrect Option
B. There is no active version of the Data Raptor Extract.
This is unlikely to be the cause. An OmniScript cannot reference an inactive DataRaptor. If the DataRaptor were inactive, the OmniScript would fail to load altogether or throw a clear error, rather than displaying with empty data. The activation state is enforced by the platform.
C. There is no active version of the OmniScript.
This is incorrect. The scenario states that the "OmniScript displays," which would be impossible if there were no active version. A user cannot launch an inactive OmniScript from a FlexCard. This error would prevent the script from opening entirely.
Reference
Salesforce OmniStudio Developer Guide: Configure Actions for a FlexCard
Question 29Select all that apply
A developer creates a Flexcardthat displaysa contact’s mailing address and passes the contact’s postal code to a child FlexCard.
When configuration text elements in the child FlexCard, what syntax should a developer use to refer to the contact’s postal code?
Show answerHide answer
Correct answer: D{Params.postalcode}
Explanation
Summary
In OmniStudio, when data is passed from a parent component to a child component, such as from a parent FlexCard to a child FlexCard, it is received as a parameter. The child component does not directly access the parent's data context. Instead, it must reference the specific parameter name that was defined in the data passing configuration. The syntax to reference these passed-in values uses the Params namespace.
Correct Option
D. {Params.postalcode}
This is the correct syntax. The Params object is the designated namespace for accessing any data passed into a FlexCard from an external source, including a parent card. When the parent card passes the postal code, it becomes a named parameter in the child card's context. Using {Params.postalcode} (or the exact parameter name defined in the action) allows the child card's text element to correctly display the received value.
Incorrect Option
A. {Postalcode}
This syntax would only work if "Postalcode" were a field on the base record that the child FlexCard is directly querying for itself. Since the data is being passed from the parent, it exists in the parameters collection, not in the root data context of the child card.
B. {Parent.postalcode}
There is no built-in Parent namespace for directly accessing a parent component's data within a child FlexCard. Data must be explicitly passed from parent to child using parameters. This syntax is invalid and will not resolve to any value.
C. {Records.postalcode}
The Records namespace is typically used within the parent FlexCard itself to reference fields from the record(s) it queried. A child card does not automatically inherit this context. The child card must receive the data via parameters and then reference it using Params.
Reference
Salesforce OmniStudio Developer Guide: Configure Actions for a FlexCard
Question 30Select all that apply
A developer has a requirement to create a child FlexCard that contains all of its parent FlexCard’s records In a Datable How should the developer configure the parent FlexCard’s Node?
Show answerHide answer
Correct answer: B{Records}
Explanation
Summary
To pass all records from a parent FlexCard to a child FlexCard, the developer must reference the correct data context node from the parent's data source. The parent FlexCard's query typically returns a collection of records, which is stored in a default node. The child component needs access to this entire collection to display it in its own DataTable.
Correct Option
B. {Records}
This is the correct node to use. In a parent FlexCard, the {Records} node represents the root array of records returned by the card's DataRaptor or query. By setting this as the source in the parent's action configuration, the entire collection of records is passed to the child card. The child card can then bind its DataTable directly to the received parameter, which will now contain the full set of data.
Incorrect Option
A. {Records[0]}
This syntax refers only to the first record ([0]) within the {Records} array. Passing this would send a single object representing the first record to the child card, not the entire collection. The child's DataTable would not have the full list of records to display.
C. {Params.records}
The Params namespace is used within a child component to access data passed into it. In the parent card's configuration, you reference your own local data context ({Records}), not a Params object. Using {Params.records} in the parent would imply the parent is expecting to receive data, which is the reverse of the intended data flow.
D. {Recorded}
This is an invalid and non-existent node within the OmniStudio context. The standard and reserved node name for the collection of records in a FlexCard is {Records}. Using {Recorded} would result in no data being passed to the child card.
Reference
Salesforce OmniStudio Developer Guide: Configure Actions for a FlexCard
Full mock exam
Sit the OmniStudio-Developer exam before exam day
Full-length mocks with the same number of questions and the same time limit as the real OmniStudio-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.