OMS-435 practice question 7 of 15

A developer creates a DataRaptor Extract to retrieve data to pass to anexternal service. The external service expects the field value to be integer. However, the DataRaptor is sending it as a string. Which action can the developer take to fix this?

Full set: 85 questions
Answer options
A: In the DataRaptor Output tab, select the Output Data Type of that field toInteger. Correct answer
B: In the DataRaptor Output tab, enter the default value as 0 on the field.
C: In the DataRaptor Extract tab, set the Input Data Type field to Integer.
D: In the DataRaptor Formula tab, define a formula using the function TOINTEGER and use theformula as output.
Correct Answer:
A. In the DataRaptor Output tab, select the Output Data Type of that field toInteger.
Explanation

The most direct and efficient method to ensure a field is output as a specific data type is by using the built-in functionality on the DataRaptor's Output tab. This tab allows developers to map extracted data to an output structure and explicitly define the data type for each field. By selecting 'Integer' from the Output Data Type dropdown for the relevant field, the DataRaptor will automatically cast the value, ensuring the external service receives it in the correct format. This approach is the standard and intended practice for type casting in a DataRaptor's output.

References

1. Salesforce OmniStudio Documentation

DataRaptor Output Mappings: "To change the data type of an output field

select the data type from the list in the Output Data Type column. For example

to change a text field to a number

select Number." This directly supports option A as the intended method. (Accessed via Salesforce Help & Training portal for OmniStudio).

2. Salesforce OmniStudio Documentation

DataRaptor Formulas: The documentation lists TOINTEGER(text) as an available function to convert a string to an integer. This confirms that option D is technically possible but

as explained

less direct than using the dedicated Output Data Type setting. (Accessed via Salesforce Help & Training portal for OmniStudio).

3. Salesforce OmniStudio Documentation

Filter a DataRaptor Extract: "In the Filter section of the Extract tab... specify the Field

Operator

and Value for the filter. The Input Data Type specifies the data type of the value." This confirms that the setting in option C relates to input filters

not output fields. (Accessed via Salesforce Help & Training portal for OmniStudio).

Scroll to Top