Skip to main content

FieldLogs

External Call

The External Call Instructions allow a Template/Script to communicate with an external server.

These Script Instructions make HTTP/HTTPS calls to an external server. They enable a Script to perform the following two functions:

  1. Request data from an external server to be used in the Template/Script.

  2. Push data from within the Template/Script to an external server.

The External Call category includes two types of Script Instructions:

  1. Get External Call Value

  2. Post Value in External Call

These Script Instructions require the user to select the Identity. To know more about Identities, see Enterprise Identities.

Get External Call Value is an External Call Instruction that retrieves data from an external server and stores it in a Local Variable to use within the Template/Script.

To construct a Script Instruction using Get External Call Value:

  1. Select Get External Call Value from the Instruction dropdown list. Options Variable Name, Url, Payload and Using Identity appear as seen below.

    GetExternalCallValue.png
  2. In the Variable Name field, enter the name of a Local Variable that holds the data received from the external server.

    Enter the URL of the external server in the Url field. Enter the payload information required for the server request in the Payload field.

    Select the ID of the value that you want to manipulate in the Using Identity dropdown list.

The Get External Call Value Script Instruction is added to the Script.

Post Value in External Call is an External Call Instruction that pushes data to an external server from within the Template/Script.

To construct a Script Instruction using Post Value in External Call:

  1. Select Post Value in External Call from the Instruction dropdown list. Options Url, Payload and Using Identity appear as seen below.

    PostExternalCallValue.png
  2. Enter the URL of the external server in the Url field. Enter the data to be pushed to the external server in the Payload field. Select the ID of the value that you want to manipulate in the Using Identity dropdown list.

The Post Value in External Call Script Instruction is added to the Script.