OMNISTUDIO-DEVELOPER practice question 4 of 15

A developer needs to limit the of a DataRaptorExtract to a maximum of one result. How should the developer configure this?

Full set: 86 questions
Answer options
A: Define a formula with the Filter function
B: Use a Custom Output Type when creating the DataRaptor
C: Use the LIMIT filter on the Extract definition Correct answer
D: Set the Limit Propertyon the Action that calls the DataRaptor Extract.
Correct Answer:
C. Use the LIMIT filter on the Extract definition
Explanation

A DataRaptor Extract provides a declarative interface to query Salesforce objects. Within the 'Extract' tab, for each SObject being queried, there is a dedicated LIMIT field. By setting this field to '1', the developer instructs the DataRaptor to append a LIMIT 1 clause to the underlying SOQL query. This is the most direct and efficient method to ensure the database returns a maximum of one record, as the filtering happens at the database level before the data is returned to the DataRaptor for further processing.

Why Incorrect

A. Define a formula with the Filter function: Formulas operate on the data after it has been extracted from the database. Using a formula to filter would be inefficient as it would retrieve all records first.
B. Use a Custom Output Type when creating the DataRaptor: The Output Type (e.g., JSON, XML) determines the format of the final output data structure, not the number of records queried from the source object.
D. Set the Limit Property on the Action that calls the DataRaptor Extract: The requirement is to configure the DataRaptor itself. While a calling element like an OmniScript action might have properties, the core logic for limiting results should reside within the reusable DataRaptor.

References

1. Salesforce Help, OmniStudio Documentation, "DataRaptor Extract Tab": This document details the configuration of the Extract step in a DataRaptor. It explicitly lists the LIMIT field and describes its function: "Specifies the maximum number of records to return." This directly supports the correct answer.

2. Salesforce Help, OmniStudio Documentation, "DataRaptors": The overview of DataRaptors explains their purpose is to read, transform, and write Salesforce data. The LIMIT functionality is a core feature of the 'read' (Extract) capability, designed for performance and precision by controlling the query size at the source.

Scroll to Top