---
sourceDocument: Xanadu ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create a JavaScript array in a SOAP template

# Create a JavaScript array in a SOAP template {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

These are instructions for creating JavaScript arrays using SOAP execution
parameters.

## Before you begin

Role required: web_service_admin, activity_admin, activity_creator

## About this task

To add more name-value pairs to the parameter's array, append the values to the
existing array.

## Procedure

1. Create a JavaScript object with the following syntax, and add it to the `executionParam.parameter` array:  

       var newParameter = {"name":"parameterName","value":"parameterValue","additional_attribute":"none"}; 
       executionParam.parameters.push(newParameter);

   By adding the new parameter JavaScript object to the array, you ensure that
   any elements already available in the array are not impacted.
2. Make sure to set the value in the Additional attribute column in the SOAP message parameters input field to Do not escape text.  
   In this case, the system does not escape the value specified for the
   value attribute. An example of this is:  

       var newParameter = {"name":"parameterName","value":"parameterValue","additional_attribute":"do_not_escape_text"}; 
       executionParam.parameters.push(newParameter);

   Note:  
   If the value for the additional_attribute field is None, then the system escapes the value specified by the value attribute. In the first example, `parameterValue` is escaped.

