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

<a id="section_N10022_N1001F_N10001"></a>
<b>Instance Type: Data</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>asCSV</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Csv
</li></ul> Treats the document as CSV (of CsvTypeAny).</td></tr><tr><td>asCSV</td><td>Arguments: <ul><li>schemaReference (String)
</li></ul> <p>Return Type:</p><ul><li>Csv
</li></ul> Treats the document as CSV (of CsvTypeAny) and applies the specified CSV format.</td></tr><tr><td>asJSON</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Json
</li></ul> Treats the document as JSON (of JsonTypeAny).</td></tr><tr><td>asTEXT</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Text
</li></ul> Treats the document as TEXT (of TextType).</td></tr><tr><td>asXML</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Xml
</li></ul> Treats the document as XML (of XmlTypeAny).</td></tr><tr><td>base64decode</td><td>Arguments: <ul><li>contentType (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a Base64-encoded document in decoded form and sets its content type as specified.</td></tr><tr><td>base64encode</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a document encoded in Base64 format.</td></tr><tr><td>base64MimeDecode</td><td>Arguments: <ul><li>contentType (String
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a Base64 MIME-encoded document in decoded form.</td></tr><tr><td>base64MimeEncode</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a document encoded in Base64 MIME form.</td></tr><tr><td>charset</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the Content-Type header's charset parameter. Returns UTF-8 if charset isn't specified in the Content-Type.</td></tr><tr><td>contentLength</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> Returns the size of the document.</td></tr><tr><td>contentType</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the content type of a document.</td></tr><tr><td>convertCharsetEncoding</td><td><ul><li>targetCharset (String)
</li><li>writeBOM (Boolean)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns data converted to the specified character set. If the specified character set isn't UTF-8 with BOM set to false, the data will be of limited utility, transmittable but not processable.</td></tr><tr><td>createHmacSHA1</td><td>Arguments: <ul><li>key (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a SHA-1 HMAC for the provided data as a Data object, using the specified key. You should use this cryptographically weak hash only for legacy interoperability, and use the createHmacSHA256 or createHmacSHA512 functions for new integrations.</td></tr><tr><td>createHmacSHA256</td><td>Arguments: <ul><li>key (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a SHA-256 HMAC for the provided data as a Data object, using the specified key. You can use the hash with the base64encode, base64MimeEncode, or toHex functions.</td></tr><tr><td>createHmacSHA512</td><td>Arguments: <ul><li>key (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a SHA-512 HMAC for the provided data as a Data object, using the specified key. You can use the hash with the base64encode, base64MimeEncode, or toHex functions.</td></tr><tr><td>createMD5</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> <p>Returns an MD-5 hash for the provided data as a Data object. You can use the hash with the base64encode or base64MimeEncode functions for Base64 encoding, or with the toHex function for hexadecimal encoding.</p></td></tr><tr><td>createSHA1</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns an SHA-1 hash for the provided data as a Data object. You can use the hash with the base64encode or base64MimeEncode functions for Base64 encoding, or with the toHex function for hexadecimal encoding.</td></tr><tr><td>createSHA256</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns an SHA-256 hash for the provided data as a Data object. You can use the hash with the base64encode or base64MimeEncode functions for Base64 encoding, or with the toHex function for hexadecimal encoding.</td></tr><tr><td>createSHA512</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns an SHA-512 hash for the provided data as a Data object. You can use the hash with the base64encode or base64MimeEncode functions for Base64 encoding, or with the toHex function for hexadecimal encoding.</td></tr><tr><td>dispositionParam</td><td>Arguments: <ul><li>Name (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the value of the additional disposition parameter. Throws an exception if no parameter with the specified name exists.</td></tr><tr><td>dispositionParamNames</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul> Returns a list of additional disposition parameters for the Data type.</td></tr><tr><td>dispositionParamWithDefault</td><td>Arguments: <ul><li>Name (String)
</li><li>default (Data)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the value of the additional disposition parameter, or the default value if no parameter with the specified name exists.</td></tr><tr><td>fetchFileFromZipArchive</td><td>Arguments: <ul><li>filePath (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the file at the specified file path in a Zip archive.</td></tr><tr><td>fromHex</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns a hexadecimal string as binary data.</td></tr><tr><td>gunzip</td><td>Arguments: <ul><li>contentType (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul><p>Returns decompressed gzipped data, automatically re-encoding it to UTF-8 if the original charset was different. Use the contentType parameter to specify the content type of the data as it was encoded before gzipping. The returned Data type is determined by the contentType. Examples: application/json returns JSON, text/xml returns XML.</p></td></tr><tr><td>gzip</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul><p>Returns compressed gzipped Data type output.</p></td></tr><tr><td>hasDispositionParam</td><td>Arguments: <ul><li>Name (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the specified parameter exists.</td></tr><tr><td>isFileInZipArchive</td><td>Arguments: <ul><li>filePath (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul><p>Returns true if the specified file path is present in the Zip archive.</p></td></tr><tr><td>isSoapFault</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the document is XML and contains a SOAP 1.1/1.2 Fault.</td></tr><tr><td>listFilesInZipArchive</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>StringList
</li></ul><p>Returns a list of the paths of all the files present in the archive.</p></td></tr><tr><td>overrideCharset</td><td><ul><li>newCharset (String)
</li><li>withBOM (Boolean)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns data unconverted but with the charset parameter overridden as specified. If the specified character set isn't UTF-8 with BOM set to false, the data will be of limited utility, transmittable but not processable.</td></tr><tr><td>pgpDecrypt</td><td>Arguments: <ul><li>privateKey (PgpCredential)
</li><li>requiredMdc (Boolean)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns decrypted OpenPGP-encrypted data using the private key referenced by the specified PGP credential reference. When the requireMdc argument is set to true, messages lacking MDC integrity protection are rejected. Set it to false only when decrypting legacy messages encrypted without MDC.</td></tr><tr><td>pgpDecryptAndVerify</td><td>Arguments: <ul><li>privateKey (PgpCredential)
</li><li>signerPublicKey (PgpCredential)
</li><li>requireMdc (Boolean)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns decrypted OpenPGP-encrypted data using the private key referenced by the specified PGP credential reference, and verifies the signature against the specified public key. When the requireMdc argument is set to true, messages lacking MDC integrity protection are rejected. Set it to false only when decrypting legacy messages encrypted without MDC.</td></tr><tr><td>pgpEncrypt</td><td>Arguments: <ul><li>publicKey (PgpCredential)
</li><li>fileName (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the data in a file with the specified file name, encrypted using OpenPGP for the recipient whose public key is referenced by the specified PGP credential reference. The output is ASCII-armored.</td></tr><tr><td>pgpEncrypt</td><td>Arguments: <ul><li>publicKey (PgpCredential)
</li><li>armored (Boolean)
</li><li>fileName (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the data in a file with the specified file name, encrypted using OpenPGP for the recipient whose public key is referenced by the specified PGP credential reference. When the armored argument is set to true, the output is ASCII-armored; otherwise the output is raw binary.</td></tr><tr><td>pgpSignAndEncrypt</td><td>Arguments: <ul><li>publicKey (PgpCredential)
</li><li>signingKey (PgpCredential)
</li><li>fileName (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the data in a file with the specified filename, signed using the private key referenced by the specified signing PGP credential reference. The data is encrypted using OpenPGP for the recipient whose public key is referenced by the specified public key PGP credential reference. The output is ASCII-armored.</td></tr><tr><td>pgpSignAndEncrypt</td><td>Arguments: <ul><li>publicKey (PgpCredential)
</li><li>signingKey (PgpCredential)
</li><li>armored (Boolean)
</li><li>fileName (String)
</li></ul> <p>Return Type:</p><ul><li>Data
</li></ul> Returns the data in a file with the specified filename, signed using the private key referenced by the specified signing PGP credential reference. The data is encrypted using OpenPGP for the recipient whose public key is referenced by the specified public key PGP credential reference. When the armored argument is set to true, the output is ASCII-armored; otherwise the output is raw binary.</td></tr><tr><td>toHex</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Text
</li></ul> Returns binary data as a hexidecimal string.</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 a document if its content is a textual type. Examples: Json, CSV. <p>Otherwise returns a brief description of the document and content-type.</p></td></tr><tr><td>unzip</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>DataIterator
</li></ul> Returns an iterator of all the files present in the archive as Data types.</td></tr></tbody></table><br/>

