Strings
Operation | Format | Description | Example |
---|---|---|---|
Array Common |
| Returns items that are shared in common between | Example: Input: Result: Example: Input: Result: |
Array Diff |
| Returns items from the | Example: Input: Result: Example: Input: Result: |
Array Distinct |
| Returns the unique values from a provided array, excluding any duplicate values. | Input: Result: |
Array Index of |
| Returns a number based on the position specified by the separator. Returns Inputs:
| Example: Input: Result: Example: Input: Result: Example: Input: Result: |
At Mention |
| Converts emails to a Slack "mention." Tonkean searches Slack for the specified email address and returns the username that corresponds with that email address. If no value is provided for This is a special function that requires you to have a Slack instance connected to Tonkean. See Connect Communication Sources for more information. | Input: Result: |
Char At |
| Returns the character at the specified index (zero-based). | Input: Result: |
Comment Transcript |
| Returns the comments on an item. | Input: Result: Returns the third and fourth comments on an item, separated by a comma ( |
Concatenate |
| Concatenates the string representation of all values provided. Only one input is required, but any number of additional inputs can be provided. | Input: Result: |
Concatenate With Line Breaks |
| Concatenates two or more input string values, adding line breaks between each value. | Input: Result:
|
Convert JSON Array To String |
| Converts an array in JSON format to string. | Input: Result: |
Convert to Array |
| Converts a comma-separated list of values ( | Input: Result: |
Convert to String |
| Converts a specified value to a string. | Input: Result: |
Create List |
| Converts a series of values into a comma-separated list. | Input: Result: |
CSV to JSON |
| Converts a provided value from CSV to JSON format. | Input: Result: |
Date Format |
| Formats a date value in a specified format for a specified time zone. | Input: Result: |
Day of Week |
| Returns the day of the week for a specified date and time zone. | Input: Result: |
Decimal Format |
| Formats the number value,
In addition to formatting | Input: Result: |
Decode from Base64 |
| Decodes a specified Base64-encoded string, converting it into its native format. | Input: Result: |
Decode HTML URL |
| Decodes an HTML-encoded string by removing special characters and numbers to make it human-readable. | Input: Result: |
Decode URL |
| Converts an application-formatted URL and turns it into a human-readable URL. | Input: Result: |
Email Domain |
| Splits an email address at the @ sign and extracts the domain that follows. The | Input: Result: |
Encode to Base64 |
| Encodes a specified string into Base64 format. | Input: Result: |
Encode to MD5 |
| Encodes a specified string using the MD5 hash. | Input: Result: |
Encode URL |
| Converts a human-readable URL into application/x-www-form-url encoded format. | Input: Result: |
Escape HTML |
| Escapes special characters in an HTML string. | — |
Escape JSON |
| Escapes special characters in a JSON-formatted string. The following characters are escaped:
| Input: Result: |
Fallback |
| Returns the input if not empty or null, otherwise returns the fallback value. | Input: Result: |
Field Group Take Not Empty |
| Returns a field that contains a value from a provided field group. This formula checks the fields in the group provided randomly; if there are multiple fields that contain values in the provided group, this formula essentially returns one at random. | — |
Field Group To Map |
| Generates a JSON object containing the field and value pairs for a provided field group. A field group is a set of fields assigned the same field group name, allowing them to be used collectively for certain operations, like formulas. For more information about adding fields to a field group, see Manual Fields. | Example: Where a field group "Group 1" contains Input: Result: { "FieldA": "A", "FieldB": "B" } |
Find Words |
| Extracts a string between specified | Example: The last portion of a receipt reads: "Total Amount: $3,644.25 Thank You for your business!" Input: Result: |
First Name |
| Splits a full name at the designated place and extracts the first value (at the zero index). We recommend setting The | Input: Result: |
Format Full Name |
| Reformats input to a standard full name format (that is, "First Last"). | Input: Result: |
Generate Sequence ID |
| Generates a unique number for each item or inner item based on the provided You can create multiple sequence IDs to track items at various levels of the workflow.
Once generated, the sequence ID cannot be removed from the relevant item and increments for each item, ensuring the value is unique. | Example: Input: Result: Subsequent items with the same scope would have values equal to 2, 3, 4, and so on. |
Generate Unique ID |
| Generates a unique 16-digit number or 36-character string (UUID). There are two valid inputs for | Example: Input: Result: Example: Input: Result: |
Get Interface Link By Name |
| Returns a link to a custom item interface with a name matching the Additionally, you can set | Input: Result: |
Get Sequence Link By Trigger Name |
| Returns the link to the intake sequence with a trigger name matching the Make sure your trigger names are unique to reliably return a result for this formula. | Input: Result: |
Get User Name |
| Returns the full user name for a given user using their email address, using the user name in a connected communication source (for example, Slack or Teams). If no user name is found, this formula returns the email address. | Input: Result: |
Get Value By Key |
| Returns the value for a provided JSON key. | Input: Where { "name": "Ashley Taylor", "city": "Northridge" } Result: |
Greedy HTML Path |
| Returns all of the elements of given DOM traversal or CSS selectors from HTML. | Input: Result: |
HMAC SHA-256 Encryption |
| Hashes an input value using hash-based message authentication code (HMAC) with hash function SHA-256. This formula is used as a means to authenticate with some APIs that require creating a hash-based signature. This formula requires two parameters:
The hashed output is a hexidecimal string. | Input: Result: |
HTML Path |
| Returns the first match of the specified element of given DOM traversal or CSS selectors from HTML. | Input: Result: |
Index of |
| Returns the first index of | Example: Input: Result: Example: Input: Result: |
Join Arrays |
| Joins two arrays into a single array, either maintaing all values or removing any duplicate values. To remove duplicate values and keep only unique values in the resulting merged array, set | Example: Input: Result: Example: Input: Result: |
JSON Path |
| Returns the value of a given JSON path from the provided JSON content. The third parameter, | Example: Input: Result: Example: Input: JsonPath("{"ids":[1,2,3,4]}", "$.ids", "False") Result: |
JSON to XML |
| Converts a string in JSON format to XML format with options for adding a | — |
JSON Transformation Language |
| Transforms a JSON input based on the provided JSLT code. Pass in the JSLT code in the When using the JSON Transformation Language formula, we recommend encoding the JSLT code in Base64 using a free web utility (like this one) and then wrapping the JSLT parameter in the Decode from Base64 formula. Encoding the JSLT code in Base64 prevents unknown characters used in JSLT from causing errors in the formula editor. For more information about JSLT, see JSLT Tutorial. Another helpful resource for testing is the JSLT demo playground. | Input: Result: We recommend encoding all JSLT code in Base64 and then using the Decode from Base64 formula with the encoded JSLT. In the example above, the encoded JSLT is Input: Result: |
JSON Traverse |
| Returns a field value from a JSON body using the provided pathway. | Input: Result: |
Map |
| Maps each item in the JSON array using the specified mapping configuration—usually a formula or other operation you want to perform on the values in the array. There are two preset values you can use with this formula:
| Input: Result: |
Month |
| Returns the month for a specified date and time zone. | Input: Result: |
Pairs |
| Generates key-value pairs in JSON format. Include additional key and value pairs, separated by commas, to generate multiple pairs. | Input: Result: |
Previous Value |
| Returns the previous value for the specified field. Tonkean keeps track of previous values for all fields. With each change, this formula returns the most recent value. | — |
Regex Find |
| Finds the requested group of data in the custom RegEx criteria and displays the results. It’s important to know RegEx formatting in order to properly utilize this function. Visit RegEx for more information. The following values are optional:
| Input: Result: |
Regex Replace |
| Uses a regular expression to locate values in a provided | Input: Result: |
Remove Objects With Empty Fields From Array |
| Checks a passed-in This formula is often used in conjunction with Convert Inner Items to Array to remove unwanted line items from an array. | — |
Replace |
| Replaces all occurrences of the | Input: Result: |
Split Text and Take |
| Splits the input text into multiple parts as specified by the | Example: Input: Result: Example: Input: Result: |
String Join |
| Concatenates two specified values with a comma separating each value. | Input: Result: |
String Lookup Table |
| Retrieves specified values from a table and replaces a string with those values. | Input: Result: |
Strip HTML |
| Returns the raw text of a given HTML or CSS code snippet. All HTML/CSS tags are removed and the output will be comma- delineated. | Input: Result: |
Substring |
| Extracts a subsection of the | Input: Result: |
Take Not Empty |
| Extracts the first not-empty value from a list of values. | Input: Result: |
To Lower Case |
| Converts a specified string to lowercase text. | Input: Result: |
To Pascal Case |
| Converts a specified string to Pascal case, where the first letter of each word is capitalized. | Input: Result: |
To Upper Case |
| Converts a specified string to UPPERCASE text. | Input: Result: |
Trim |
| Removes the spaces before and after a provided string. | Input: Result: |
Unescape JSON |
| Unescapes a provided JSON string, returning it to standard JSON format. | — |
Wrap HTML |
| Wraps an HTML element with specified HTML tags, enabling the element or elements to display on an item interface or other web page. This formula is especially useful for displaying dynamic content as HTML. For example, you may have a JSON array of values that are updated as part of your workflow. With Wrap HTML, you can wrap this array in | Input: Result: Evelyn Rose This is a simplified example intended to show the possible formula attributes. In most cases, the HTML element will be longer and more complex. |
XML Path |
| Returns a field value from an XML body using the provided pathway. | Input: Result: |
XML to JSON |
| Converts a provided value from XML to JSON format. | Input: Result: |