# Available transform functions

## Introduction

Available transform functions are summarised in the following categories:&#x20;

* [Array](#array)
* [Date & time](#date-and-time)
* [Number](#number)
* [Other](#other)
* [String](#string)

## Array

<table><thead><tr><th width="150">Transform</th><th width="150">Description</th></tr></thead><tbody><tr><td><a href="available-transform-functions/array-transform-functions/array-join-transform-function">Join</a></td><td>Join elements of an array as a string, based on a defined delimiter.</td></tr></tbody></table>

## Date & time

<table><thead><tr><th width="150">Transform</th><th width="150">Description</th></tr></thead><tbody><tr><td><a href="available-transform-functions/date-transform-functions/custom-dynamic-date-transform-function">Custom dynamic date</a></td><td>Apply the date that a process flow runs, with or without adjustments.</td></tr><tr><td><a href="available-transform-functions/date-transform-functions/custom-static-date-transform-function">Custom static date</a></td><td>Apply a static date.</td></tr><tr><td><a href="available-transform-functions/date-transform-functions/format-date-transform-function">Format</a></td><td>Convert a date to a predefined or custom format.</td></tr><tr><td><a href="available-transform-functions/date-transform-functions/round-date-transform-function">Round date</a></td><td>Round a date up/down to the start/end of the day.</td></tr><tr><td>Time now</td><td>Returns the current date and time in your required format.</td></tr><tr><td>Timezone</td><td>Convert dates to a selected timezone.</td></tr></tbody></table>

## Number

<table><thead><tr><th width="150">Transform</th><th width="150">Description</th></tr></thead><tbody><tr><td>Cast to boolean</td><td>Convert a number value to a boolean (true/false) value based on PHP logic.</td></tr><tr><td><a href="available-transform-functions/number-transform-functions/cast-to-string-transform-function">Cast to string</a></td><td>Change the source field data type from <code>number</code> to <code>string</code>.</td></tr><tr><td>Ceiling</td><td>Round up to the nearest whole number.</td></tr><tr><td><a href="available-transform-functions/number-transform-functions/custom-number-transform-function">Custom number</a></td><td>Apply a static number.</td></tr><tr><td>Floor</td><td>Round down to the nearest whole number.</td></tr><tr><td>Make negative</td><td>Convert number to a negative.</td></tr><tr><td>Make positive</td><td>Convert number to a positive.</td></tr><tr><td><a href="available-transform-functions/number-transform-functions/math-transform-function">Math</a></td><td>Perform a mathematical operation for selected fields.</td></tr><tr><td><a href="available-transform-functions/number-transform-functions/round-number-transform-function">Round number</a></td><td>Change the number of decimal places.</td></tr></tbody></table>

## Other

<table><thead><tr><th width="150">Transform</th><th width="150">Description</th></tr></thead><tbody><tr><td><a href="available-transform-functions/other-transform-functions/cast-to-boolean-transform-function">Cast to boolean</a></td><td>Define override values for conversion to true/false.</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/cast-boolean-to-string-transform-function">Cast boolean to string</a></td><td>Change the source field data type from <code>boolean</code> to <code>string</code>.</td></tr><tr><td><a href="../../../advanced-shapes/cache/referencing-a-cache-in-mapping-transformations">Cache lookup</a></td><td>Reference a value from cached data.</td></tr><tr><td>Convert weight</td><td>Convert a specified weight unit to a given alternative.</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/custom-boolean-transform-function">Custom boolean</a></td><td>Apply a true or false value.</td></tr><tr><td>Fallback</td><td>Set a default value to be used if the given input is empty. Blank values are supported.</td></tr><tr><td>Map</td><td>Convert values using a <a href="../../../../../cross-reference-lookups">cross-reference lookup</a>.</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/null-to-string-transform-function">Null to string</a></td><td>Convert a null value to an empty string.</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/null-to-zero-transform-function">Null to zero</a></td><td>Convert a null value to zero (0).</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/null-value-transform-function">Null value</a></td><td>Convert a source value to null.</td></tr><tr><td><a href="available-transform-functions/other-transform-functions/script-transform-function">Script</a></td><td>Apply a field-level <a href="../../../../../../developer-hub/custom-scripting">custom script</a>. Note that a script will time out if it runs for more than 120 seconds.</td></tr></tbody></table>

## String

<table><thead><tr><th width="150">Transform</th><th width="150">Description / Notes</th></tr></thead><tbody><tr><td><a href="available-transform-functions/string-transform-functions/cast-to-float-transform-function">Cast to float</a></td><td>Change the source field data type from <code>string</code> to <code>float</code>.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/cast-to-number-transform-function">Cast to number</a></td><td>Change the source field data type from <code>string</code> to <code>number</code>.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/concatenate-transform-function">Concatenate</a></td><td>Join selected fields with a selected character.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/contains-one-of-many-transform-function">Contains one of many</a></td><td>Specify a comma separated list of field values to be matched for inclusion.</td></tr><tr><td>Convert string to boolean</td><td>Convert a string value to a boolean (true/false) value based on PHP logic.</td></tr><tr><td>Country code</td><td>Apply country codes of a selected type (Alpha 1, Alpha 2, Numeric). Note that this transform will cause the map step to fail if an empty value is received.</td></tr><tr><td>Country name</td><td>Return the country name for a country code. Note that this transform will cause the map step to fail if an empty value is received.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/concatenate-transform-function">Custom string</a></td><td>Apply static text or reference variables.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/does-not-contain-one-of-many-transform-function">Does not contain one of many</a></td><td>Specify a comma separated list of field values to be matched for exclusion.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/first-word-transform-function">First word</a></td><td>Get the first word from a string.</td></tr><tr><td>Hash</td><td>Convert a string to a SHA1 Hash.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/json-encode-transform-function">JSON encode</a></td><td>Encode data into JSON format. Note that although this is listed as a <code>string</code> type transform, any data type is supported. </td></tr><tr><td><a href="available-transform-functions/string-transform-functions/last-word-transform-function">Last word</a></td><td>Get the last word from a string.</td></tr><tr><td>Limit</td><td>Truncates a string to a given length.</td></tr><tr><td>Lowercase</td><td>Convert to lowercase.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/pad-transform-function">Pad</a></td><td>Pad an existing string of characters to a given length, using a given character. </td></tr><tr><td><a href="available-transform-functions/string-transform-functions/prefix-transform-function">Prefix</a></td><td>Add characters to the beginning of a field.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/replace-transform-function">Replace</a></td><td>Replace any given character(s) with another character.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/split-string-transform-function">Split</a></td><td>Split elements of a string into an array.</td></tr><tr><td><a href="available-transform-functions/string-transform-functions/substring-transform-function">Substring</a></td><td>Return part of a string value.</td></tr><tr><td>Suffix</td><td>Add a string to the end of a field.</td></tr><tr><td>Trim whitespace</td><td>Remove any characters around a string.</td></tr><tr><td>Uppercase</td><td>Convert to uppercase.</td></tr><tr><td>URL decode</td><td>Convert an encoded URL into a readable format.</td></tr><tr><td>URL encode</td><td>Convert a string to a URL encoded string.</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/map-shape/working-with-field-transformations/available-transform-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
