Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Dev-210 Exam - Topic 3 Question 4 Discussion

Posted by Melita on Oct 07, 2025 at 10:18 PM

An Integration Procedure uses an HTTP action to make a 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 web service.

How should the developer configure the Integration Procedure to meet this requirement?

Suggested Answer: A

OmniStudio does not natively support direct JSON-to-XML transformation using DataRaptors. When a transformation to specific XML formats is needed for integration with external web services, it is recommended to use Remote Actions that invoke custom Apex classes.

A . Use a Remote Action that calls the XMLStreamWriter class -- Correct. The XMLStreamWriter Apex class provides precise control over XML structure and is the Salesforce-recommended way to programmatically generate XML from data within a Remote Action step in an Integration Procedure.

Incorrect Options:

B . The XML checkbox in DataRaptor does not convert JSON to XML; it defines output data format for display or API serialization.

C . XMLStreamReader is used for parsing XML, not for generating it.

D . DataRaptor Transforms only manipulate JSON structure; they do not support converting JSON into XML format.

:

Salesforce Developer Guide Apex XMLStreamWriter Class

OmniStudio Integration Procedures Using Remote Actions with Custom Apex


Get Premium Plat-Dev-210 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
32 comments · newest first
JE
Jesusa 8 months ago
I feel more confident about D now. Thanks!
PA
Paz 8 months ago
Plus, using a Data Mapper is straightforward.
GA
Gabriele 8 months ago
Exactly! We need a clear XML structure for the next service.
JE
Jesusa 9 months ago
I see your point. D seems more fitting for the requirement.
PA
Paz 9 months ago
Right, B just extracts data. D is more comprehensive.
GA
Gabriele 9 months ago
B is good too, but it doesn't directly convert JSON to XML.
JE
Jesusa 9 months ago
I'm not sure about D. What about option B?
PA
Paz 9 months ago
I agree, D makes sense. The Data Mapper Transform is effective.
BE
Benedict 9 months ago
Why would anyone choose A or C? Seems unnecessary.
ER
Erinn 10 months ago
Definitely D! It’s the most straightforward method.
JE
Jeannetta 10 months ago
Wait, can you really use XMLStreamWriter for this? Sounds off.
LO
Louann 10 months ago
I think B could work too, but not sure about the XML checkbox.
JE
Jenifer 10 months ago
Option D is the way to go for JSON to XML conversion!
MA
Marta 10 months ago
I heard the developer who wrote this question loves XML. Maybe that's why Option D is the answer!
RE
Rene 10 months ago
I feel like we discussed the XMLStreamWriter class in class, but I can't recall exactly how it fits into this scenario.
PO
Portia 11 months ago
I think option D sounds right because we often need to transform data formats in integration procedures, but I’m a bit uncertain about the specifics of the Data Mapper.
GA
Gabriele 11 months ago
I think option D is the best choice. JSON to XML conversion is crucial here.
RU
Ruthann 11 months ago
I’m leaning towards option B since it mentions checking the XML checkbox, which seems like a straightforward way to handle the conversion.
CA
Carmela 11 months ago
I remember we practiced a similar question about converting JSON to XML, but I’m not sure if it was specifically about using a Data Mapper.
AS
Ashleigh 11 months ago
Option A? Really? Who uses Remote Actions these days? Pffft.
WE
Wei 12 months ago
Hmm, I'm not sure. Maybe Option B would work? Gotta love that JSON to XML conversion!
AM
Amber 12 months ago
Option C is the way to go. XMLStreamReader is the way to read that XML, baby!
MO
Mozelle 1 year ago
I agree with Minna. Option D is the way to go here. Gotta love that XML!
MI
Minna 1 year ago
Option D is the correct answer. Using a Data Mapper Transform to convert JSON to XML is the way to go.
JO
Joaquin 1 year ago
I'm a bit confused here. Is option C with the XMLStreamReader class the right way to go? I'm not super familiar with that class, but it sounds like it might be able to handle the XML conversion.
CA
Carmen 1 year ago
Okay, I've got an idea. I think option B with the Data Mapper Extract and the XML checkbox on the Output JSON Path might work. That way I can directly convert the JSON response to the required XML structure.
BL
Blair 1 year ago
Hmm, this looks tricky. I think I'd try option D and use a Data Mapper Transform to convert the JSON to XML. That seems like the most straightforward way to handle the requirement.
DA
Dahlia 1 year ago
I'm not sure about this one. The question seems to be asking about converting a REST API response to XML, but I'm not sure which option is the best approach.
DO
Donte 7 months ago
↳ replying to Dahlia
I agree with Nydia. B looks like a solid choice for this scenario.
MA
Marilynn 7 months ago
↳ replying to Dahlia
I’m not convinced about B. What about A? The XMLStreamWriter could work.
NY
Nydia 7 months ago
↳ replying to Dahlia
I’m leaning towards option B. The Data Mapper Extract seems useful.
SA
Salena 7 months ago
↳ replying to Dahlia
I think option D makes the most sense. JSON to XML conversion is key here.
0/2000 characters

Save Cancel