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 1 discussion

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

A developer is creating an OmniScript that provisions trial orgs to their customers. The following text block in the OmniScript uses a merge code to display the ID for the new trial org:
Welcome to Salesforce!
Your ID is %Details:Customer|0:ID%
During testing, the developer notices that the ID does not display. The data JSON is structured as shown below.
How should the developer correct the merge code in order for the ID to display?

  • A. To %Details:Customer|n:ID%
  • B. To $Details:Customer|0:ID$
  • C. To %Details:Customer|1:ID%
  • D. To %%Details:Customer|0:ID%%
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Afaf_ben
Highly Voted 1 year, 8 months ago
Selected Answer: C
indexes starts from 1
upvoted 5 times
...
Haru25321
Most Recent 1 year ago
Selected Answer: C
Index starts from 1
upvoted 1 times
...
adesh123
1 year, 1 month ago
Index starts from 1
upvoted 1 times
...
suntionut
1 year, 2 months ago
A couple of points: • The index starts from 1 not from 0. Tested myself just now even if the JSON structure is clearly starting at position 0: https://imgur.com/a/wZJnDOv • The merge syntax for omniscripts is "%" not $
upvoted 1 times
...
studyvikram
1 year, 3 months ago
Selected Answer: C
Refer to this section https://help.salesforce.com/s/articleView?id=sf.os_access_omniscript_data_json_with_merge_fields.htm&type=5
upvoted 1 times
...
lindem
1 year, 4 months ago
Selected Answer: C
I already tested an the correct answer is C
upvoted 1 times
...
ppremy
1 year, 6 months ago
The correct merge code for the developer to use in order for the ID to display is: B. To $Details:Customer|0:ID$ Explanation: The correct syntax for referencing a merge code in OmniScript is to use a dollar sign ($) followed by the merge code, which includes the object name, index number, and field name. In this case, the object name is "Customer", the index number is "0" (since there is only one element in the "Customer" array), and the field name is "ID". Therefore, the correct merge code to display the ID for the new trial org is "$Details:Customer|0:ID$". Option A is incorrect because it uses the letter "n" instead of the index number "0". Option C is incorrect because it uses the index number "1" instead of "0". Option D is incorrect because it uses double percentage signs (%%) instead of a single dollar sign ($), which is not the correct syntax for referencing merge codes in OmniScript.
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 ...