Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

OmniStudio-Developer Practice Test


Page 4 out of 24 Pages

Which two of these options can a developer use to retrieve data from a Salesforce object? Choose 2 answers


A. A DataRaptor Load Action


B. A DataRaptor Extract Action


C. A Lookup Input Element


D. A DataRapt or Post Action





A.
  A DataRaptor Load Action

C.
  A Lookup Input Element

Explanation:

A DataRaptor Load Action can be used to retrieve data from a Salesforce object by specifying the object name, fields, and filter criteria. A Lookup Input Element can be used to retrieve data from a Salesforce object by allowing the user to search for a record using a lookup field

The OmniScript must retrieve device details stored in the Assetobject and then call an external system to send troubleshooting commands via REST API to the device. Which two OmniScript element should the developer use to configure this functionality?


A. DataRaptor Extract Action


B. REST API Action


C. Navigation Action


D. SOQL Action


E. HTTP Action





A.
  DataRaptor Extract Action

E.
  HTTP Action

Explanation:

According to the OmniScript Action Elements page, a DataRaptor Extract Action can be used to “get data from one or more Salesforce records” and an HTTP Action can be used to “get, save, or delete data through a web application programming interface (API)”.

A developerneedsto use the CONTIF function to process data entered by the user in an OmniScript. The output of the function needs to be displayed to the user immediately in the current step. Based on best practice, what element should the developer use this function in?


A. A Calculation Action element


B. A SetValues element


C. A formula element


D. A Range element





C.
  A formula element

Explanation:

A formula element allows the developer to define formulas using functions and operators to manipulate data in an OmniScript. The output of the formula element can be displayed to the user immediately in the current step using a display element. The CONTIF function counts how many times a value appears in a list1. A Calculation Action element executes a calculation procedure and returns the output as a JSON object. A Set Values element assigns values to variables or fields in an OmniScript. A Range element defines a range of values for a variable or field in an OmniScript1. Based on best practice, a formula element is the most suitable element to use the CONTIF function in this scenario.

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?


A. Use aRemote Action that calls the XMLStreamReader class


B. Use a Remote Action that calls the XMLStreamWriter class


C. Use a DataRaptor Transform to convert JSON to XML


D. Use a DataRaptor Extract and check the XML checkbox on the Output JSON Path.





C.
  Use a DataRaptor Transform to convert JSON to XML

Explanation:

According to the OmniStudio Developer Guide, “DataRaptor Transform actions can convert JSON to XML and vice versa.” Therefore, the correct answer is C.

What should a developer's first step be when troubleshooting whether a DataRaptor Extract is retrieving data?


A. Go to the Lightning Console and reload the page to test.


B. Go to the PREVIEW tab In OmniScript to test.


C. Deactivate the card andlayout, andgo to the PREVIEW tab for the card to test.


D. Add a key/value pair in the DataRaptor to test it.





B.
  Go to the PREVIEW tab In OmniScript to test.

Explanation:

The PREVIEW tab in OmniScript allows the developer to test the DataRaptor Extract by providing a record ID and viewing the output data. This is a quick and easy way to troubleshoot whether the DataRaptor Extract is retrieving data correctly.


Page 4 out of 24 Pages
Previous