Utilities
  • 20 Feb 2024
  • 4 Minutes to read
  • Dark
    Light

Utilities

  • Dark
    Light

Article Summary

Utility steps enable you to perform common actions to manipulate workflow data. These include extracting, parsing, validating, calculating, and many more. Utilities are not vendor based.

Array utils

Here's a list of supported array utilities. To learn more, check out examples for each one.

Utility nameDescription
Append to arrayAdds an object to the end of an existing array or instantiates (creates) an array to which objects will later be added.
Chunk arrayDivides an existing array into smaller arrays.
Concat arraysCombines two arrays into a single array. Objects that appear in both arrays are duplicated in the concatenated result.
Extract field from recordsGiven a list of records and a field name, extract the value for the provided field name for each record.
Filter arrayFilters an array to produce a subset of the data. The result is based on the Filter func parameter.
Get last item of arrayReturns the last object in the provided array.
Join stringsReturns a single string of all objects in the provided array, separated by the given delimiter.
Prepend to arrayAdds an object to the beginning of an existing array or instantiates (creates) an array to which objects can be added later.
Reverse arrayReverses the order of the items in a provided array.
Rollup numeric arrayPerforms a rollup function on an array of numbers.
Slice arrayReturns a slice (section) of the provided array.
Slice array from startReturns a slice (section) of the provided array from the first object in the array up to the specific index.
Slice array to endReturns a slice (section) of the provided array from the first provided index and up to and including the last object.
Sort arraySort the objects in the provided array. Supports strings, numbers, and datetime strings.
Subtract arraysCompares two arrays (left and right) to receive 3 sub-arrays.
Unique on arrayReturns an array in which each input array member appears only once.

Cryptographic utils

Here's a list of supported cryptographic utilities. To learn more, check out examples for each one.

Utility nameDescription
Calculate MD5Calculates the MD5 hash of the provided file.
Calculate SHA1Calculates the SHA1hash of the provided file.
Calculate SHA256
Calculates the SHA256 hash of the provided file.
Cipher decryptUses cipher to decrypt the provided text.
Cipher encryptUses cipher to encrypt the provided text.
Decode JWT Decodes the provided JSON Web Token without its signature.
Encode JWTUses HS256 to encode a JSON Web Token. Default claims are iat (issue time) and exp (expiration time).
Generate random numberGenerates a random number within the minimum and maximum values.
Generate random stringGenerates a random alphanumeric string.
Generate UUIDGenerates a UUID (universally unique identifier) string.
Get TLS certificate informationReturns information about TLS/SSL certificates for the provided endpoint.

Date and time utils

Here's a list of supported date and time utilities. To learn more, check out examples for each one.

Utility nameDescription
Calculate time and durationCalculates and returns the duration (absolute) from the provided date and time to/from the present moment.
Convert dateConverts the provided date to the specified new date format.
Get dateReturns a time and date string according to the provided format, time offset, timezone, and date.

Encoding utils

Here's a list of supported encoding utilities. To learn more, check out examples for each one.

Utility nameDescription
Convert CSV to JSONConverts and outputs the provided CSV file to JSON format.
Convert EML to JSONConverts and outputs the provided EML file to JSON format.
Convert JSON to YAMLConverts and outputs the provided JSON file to YAML format.
Decode base64Decodes the provided base64 string.
Decode hexDecodes the provided Hex string.
Decode JSONDecodes and outputs the provided JSON string to a JSON object.
Decode URLDecodes the provided URL.
Encode base64Encodes the provided text in base64.
Encode hexEncodes the provided text into Hex.
Encode URLEncodes the provided URL to URL encoded format.

String utils

Here's a list of supported string utilities. To learn more, check out examples for each one.

Utility nameDescription
Convert string to lowercaseConverts and outputs all characters in the provided text to lowercase.
Convert string to title caseConverts and outputs all characters in the provided text to title case.
Convert string to uppercaseConverts and outputs all characters in the provided text to uppercase.
Defang or refang entityDefangs or refangs the provided IP, URL, or email address.
Escape JSON stringEscapes the provided text so you can use it in JSON.
Replace substring in textReplaces one substring with another one in the provided text.
Split textSplits the provided text according to the given separator.
Trim spaces before and after stringTrims (removes) the spaces at the beginning and the end of the provided text.
Trim string charactersTrims (removes) all occurrences of the given characters from one or two edges of the provided text.
Trim string prefixTrims (removes) the prefix of the provided text.
Trim string suffixTrims (removes) the suffix of the provided text.
Truncate textTruncates (shortens) the provided text to the given limit.



Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.