Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified OmniStudio Developer All Questions

View all questions & answers for the Certified OmniStudio Developer exam

Exam Certified OmniStudio Developer topic 1 question 59 discussion

Actual exam question from Salesforce's Certified OmniStudio Developer
Question #: 59
Topic #: 1
[All Certified OmniStudio Developer Questions]

A developer needs to transform contact data into a JSON array.

Given the Input JSON shown above, what are two ways a developer could configure a DataRaptor Transform to achieve the expected Output JSON? (Choose two.)

  • A. Set the Input JSON Path as LIST(Contact) and the Output JSON Path as Contact.
  • B. Set the Input JSON Path as Contact and the Output JSON Path as LIST(Contact).
  • C. Use a formula LIST(Contact), and add the output of the formula as the input in the Transform tab.
  • D. Set the Input JSON Path as Contact, the Output JSON Path as Contact, and Output Data Type as List.
Show Suggested Answer Hide Answer
Suggested Answer: CD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
kwon25
3 months, 2 weeks ago
You can't set paths as List(Contact), neither input or output. Correct answers are C&D.
upvoted 3 times
...
JohnyWalker99
12 months ago
Answer is CD !!
upvoted 2 times
...
carsar
1 year ago
Selected Answer: CD
Correct answers are CD. Answer B will display same single record in the output but only change the attribute name. So, it's wrong.
upvoted 4 times
...
ppremy
1 year, 6 months ago
Selected Answer: BD
The expected Output JSON represents an array with one element containing the contact data, so it should have a list or array structure. Based on this, the two ways a developer could configure a DataRaptor Transform to achieve the expected Output JSON are: B. Set the Input JSON Path as Contact and the Output JSON Path as LIST(Contact). This configuration will create an array or list structure in the output with one element, which contains the contact data. D. Set the Input JSON Path as Contact, the Output JSON Path as Contact, and Output Data Type as List. This configuration will create an array or list structure in the output with one element, which contains the contact data. By setting the Output Data Type as List, we explicitly tell DataRaptor to create a list/array structure. Therefore, options B and D are the correct answers. Options A and C are not correct as they do not create the expected output structure.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...