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
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
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.