PLAT-DEV-210 practice question 23 of 25
An integration Procedure uses an HTTP action to makea REST API call. The response from the REST API must be converted into a specific XML structure before sending it as an input to another external wen service. How should the developer configure the Integration Procedure to meet this requirement?
Full set: 103 questionsAn Integration Procedure is designed to orchestrate multiple steps, including data retrieval, manipulation, and callouts. When a JSON response from an HTTP action needs to be converted to XML, the standard, declarative tool for this task is a DataRaptor Transform. DataRaptors are a core component of OmniStudio for data manipulation. A DataRaptor Transform is specifically designed to change the structure of data, and it explicitly supports converting a JSON input into a specified XML output format. This "clicks-not-code" approach is the most efficient and maintainable solution within the OmniStudio framework for this requirement.
A. Use a Remote Action that calls the XMLStreamReader class XMLStreamReader is an Apex class used for parsing (reading) an existing XML document, not for generating (writing) one from a JSON source.
B. Use a Remote Action that calls the XMLStreamWriter class While technically feasible to write custom Apex code using XMLStreamWriter, this is a programmatic solution. The platform provides a declarative tool (DataRaptor Transform) for this exact purpose, which is the preferred method.
D. Use a DataRaptor Extract and check the XML checkbox on the Output JSON Path. A DataRaptor Extract is used to retrieve data from Salesforce objects. It is not designed to transform an existing in-memory JSON structure from a previous step (like an HTTP Action) into XML.
1. Salesforce Help, OmniStudio Documentation, "DataRaptor Transform Action": "Use a DataRaptor Transform Action to transform data. For example, you can transform the data structure of the output of a DataRaptor Extract Action or a REST API call to the required input format of a subsequent action." This confirms a DataRaptor Transform is the correct tool to use after an API call.
2. Salesforce Help, OmniStudio Documentation, "Transform JSON Input to XML Output": "A DataRaptor Transform can convert JSON input to XML output. In the Output tab, you select XML as the Output Type. You then map data from the input JSON to the output XML." This section explicitly details the exact functionality required by the question.
3. Trailhead, OmniStudio DataRaptors, "Transform Data with DataRaptors": This module explains the function of each DataRaptor type. The "DataRaptor Transform" unit states its purpose is to "convert data from one format to another," including JSON-to-JSON, XML-to-JSON, and JSON-to-XML transformations.
Keep practicing
Take the free PLAT-DEV-210 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PLAT-DEV-210 practice questions
- Question 1A developer creates a DataRaptor Extract to retrieve data to pass to an external service.…
- Question 3When launching an OmniScript from an action on a FlexCard, the OmniScript displays, but n…
- Question 4A developer is creating a FlexCard for a new Community page. The FlexCard will display ca…
- Question 5A developer needs to use the COUNTIF function to process data entered by the user in an O…
- Question 6A developer is configuring the API URL in an HTTP Action element within an Integration pr…
- Question 7A developer needs to limit the output of a Data Mapper Extract to a maximum of one result…
