Skip to main content

Methods of Adding Data to Parameters

David Rolenc avatar
Written by David Rolenc
Updated over 2 weeks ago

Parameters are able to be specified to the scripts by the following methods:

1. Using query parameters

2. Using cookie parameters

3. Using fixed value

4. Editing manually/by custom functionality

Using Query Parameters

When the query parameter method is used, our script takes the parameter value from the specified variable in the URL.

In the example below, the value in a query parameter “myQueryParamName” is saved to our parameter External ID.

"externalId": {queryParam: "myQueryParamName"}

Using cookie parameters

When the cookie parameter method is used, our script takes the parameter value from the specified cookie.

In the example below, the value present in a cookie “myCookieName” is saved to our parameter external ID.

"externalId": {cookieParam: "myCookieName"}

Using a fixed value

You are able to use fixed values for the parameters which do not change.

"externalId": "12345"

Editing manually / by custom functionality

You are able to replace a value by yourself before running the script. Keep in mind that the value needs to be a valid string for all the parameters.

Third parties often use a specific placeholder for the value parameter. You can usually find this information in their knowledge base or help center. The quickest way, however, is often to ask their support team directly.

Alternatively, a developer can implement a custom function to dynamically insert the value as needed.

Did this answer your question?