New Year Sale 2026! 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

Actual exam question for Salesforce's Plat-Dev-210 exam
Question #: 4
Topic #: 3
[All Plat-Dev-210 Questions]

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?

Show Suggested Answer Hide Answer
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


Contribute your Thoughts:

0/2000 characters
Gabriele
3 days ago
Exactly! We need a clear XML structure for the next service.
upvoted 0 times
...
Jesusa
8 days ago
I see your point. D seems more fitting for the requirement.
upvoted 0 times
...
Paz
13 days ago
Right, B just extracts data. D is more comprehensive.
upvoted 0 times
...
Gabriele
18 days ago
B is good too, but it doesn't directly convert JSON to XML.
upvoted 0 times
...
Jesusa
24 days ago
I'm not sure about D. What about option B?
upvoted 0 times
...
Paz
29 days ago
I agree, D makes sense. The Data Mapper Transform is effective.
upvoted 0 times
...
Benedict
1 month ago
Why would anyone choose A or C? Seems unnecessary.
upvoted 0 times
...
Erinn
1 month ago
Definitely D! It’s the most straightforward method.
upvoted 0 times
...
Jeannetta
1 month ago
Wait, can you really use XMLStreamWriter for this? Sounds off.
upvoted 0 times
...
Louann
2 months ago
I think B could work too, but not sure about the XML checkbox.
upvoted 0 times
...
Jenifer
2 months ago
Option D is the way to go for JSON to XML conversion!
upvoted 0 times
...
Marta
2 months ago
I heard the developer who wrote this question loves XML. Maybe that's why Option D is the answer!
upvoted 0 times
...
Rene
2 months ago
I feel like we discussed the XMLStreamWriter class in class, but I can't recall exactly how it fits into this scenario.
upvoted 0 times
...
Portia
2 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.
upvoted 0 times
...
Gabriele
3 months ago
I think option D is the best choice. JSON to XML conversion is crucial here.
upvoted 0 times
...
Ruthann
3 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.
upvoted 0 times
...
Carmela
3 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.
upvoted 0 times
...
Ashleigh
3 months ago
Option A? Really? Who uses Remote Actions these days? Pffft.
upvoted 0 times
...
Wei
3 months ago
Hmm, I'm not sure. Maybe Option B would work? Gotta love that JSON to XML conversion!
upvoted 0 times
...
Amber
4 months ago
Option C is the way to go. XMLStreamReader is the way to read that XML, baby!
upvoted 0 times
...
Mozelle
4 months ago
I agree with Minna. Option D is the way to go here. Gotta love that XML!
upvoted 0 times
...
Minna
4 months ago
Option D is the correct answer. Using a Data Mapper Transform to convert JSON to XML is the way to go.
upvoted 0 times
...
Joaquin
4 months 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.
upvoted 0 times
...
Carmen
4 months 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.
upvoted 0 times
...
Blair
5 months 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.
upvoted 0 times
...
Dahlia
5 months 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.
upvoted 0 times
...

Save Cancel