---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps]
keyword: [Integrate, Workday Integration, Orchestrate for Integrations, Orchestration, Orchestration Builder]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: StringList Member Functions
layout: subsection
---

<a id="d433e136"></a>
<b>Instance Type: StringList</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>add</td><td>Arguments: <ul><li>element (String)
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> <p>Returns the list with the specified element appended.</p></td></tr><tr><td>addAll</td><td>Arguments: <ul><li>listToAppend (StringList)
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> <p>Returns a single list containing the elements of both lists combined.</p></td></tr><tr><td>contains</td><td>Arguments: <ul><li>element (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the list contains the specified element.</td></tr><tr><td>distinct</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns a list of distinct elements from the list.</td></tr><tr><td>get</td><td>Arguments: <ul><li>index (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the element at the specified index.</td></tr><tr><td>isEmpty</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the list is empty, otherwise returns false.</td></tr><tr><td>iterator</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns an iterator for elements in the list.</p></td></tr><tr><td>mkString</td><td>Arguments: <ul><li>Separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string formed from the entries in the list, separated by the specified separator.</p></td></tr><tr><td>prepend</td><td>Arguments: <ul><li>element (Number)
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> <p>Returns the list with the specified element prepended.</p></td></tr><tr><td>reverse</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns the list with the order of its elements reversed.</td></tr><tr><td>size</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the number of items in the list.</td></tr><tr><td>toJsonArray</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Json
</li></ul> Returns the items in the list as a JSON array.</td></tr><tr><td>toString</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns a string representation of the value.</td></tr></tbody></table><br/>

