OMS-435 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: 85 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 is configured to retrieve data from Salesforce objects. To limit the number of records returned, the developer should use the LIMIT field within the filter configuration of the object on the 'Extract' tab. Entering '1' in this field adds a LIMIT 1 clause to the underlying SOQL query. This is the most direct and efficient method, as it restricts the data retrieved at the source (the database) rather than processing a larger dataset after extraction.

References

1. Salesforce Help

OmniStudio Documentation: Define DataRaptor Extract Filters. This official guide details the configuration options for filtering data in a DataRaptor Extract. It explicitly states

"You can filter the data that a DataRaptor Extract retrieves from a Salesforce object... You can also specify an ORDER BY clause and a LIMIT." This confirms that LIMIT is a dedicated configuration on the extract definition.

2. Salesforce Help

OmniStudio Documentation: DataRaptor Extract Fields. In the table describing the fields for an sObject in the Extract Step

the LIMIT field is defined. The description confirms its purpose is to "Limit the number of records returned." This directly supports the correct answer.

Scroll to Top