---
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: InstanceReference Member Functions
layout: subsection
---

<b>Instance Type: InstanceReference</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>getIDValues</td><td>Arguments: <ul><li>None
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns a StringList of constituent ID values for the instance reference. If a filter is provided, only the values matching it are returned.</td></tr><tr><td>getIDValues</td><td>Arguments: <ul><li>idType (String)
</li></ul> Return Type: <ul><li>StringList
</li></ul> Returns a StringList of constituent ID values for the instance references with the specified idType.</td></tr><tr><td>getIDValues</td><td>Arguments: <ul><li>idType (String)
</li><li>parentID (String)
</li></ul> Return Type: <ul><li>StringList
</li></ul> <p>Returns a StringList of constituent ID values for instance references with the specified idType and parentID.</p></td></tr><tr><td>toString</td><td>Arguments: <ul><li>idType (String)
</li></ul> Return Type: <ul><li>String
</li></ul> Returns the value as a String.</td></tr><tr><td>toXml</td><td>Arguments: <ul><li>enclosingElement (String)
</li><li>elementName (String)
</li></ul> Return Type: <ul><li>Xml
</li></ul> Returns the instance reference as XML using the specified elementName and enclosed in the specified enclosingElement. If the elementName and enclosingElement contain a prefix, define it in the orchestration.</td></tr></tbody></table><br/>

