Utilities
  • 16 Feb 2023
  • 3 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 theprovided array.
Join stringsReturns a single string of all objects in theprovided 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 aprovided array.
Rollup numeric arrayPerforms a rollup function on an array of numbers.
Slice arrayReturns a slice (section) of theprovided array.
Slice array from startReturns a slice (section) of theprovided array from the first object in the array up to the specific index.
Slice array to endReturns a slice (section) of theprovided array from the firstprovided index and up to and including the last object.
Sort arraySort the objects in theprovided 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 theprovided file.
Calculate SHA1Calculates theSHA1 hash of theprovided file.
Calculate SHA256
Calculates theSHA256 hash of theprovided file.
Cipher decryptUses cipher to decrypt theprovided text.
Cipher encryptUses cipher to encrypt theprovided text.
Decode JWT Decodes theprovided 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 theprovided 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 theprovided date and time to/from the present moment.
Convert dateConverts theprovided date to the specified new date format.
Get dateReturns a time and date string according to theprovided 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 theprovided EML file to JSON format.
Convert JSON to YAMLConverts and outputs theprovided JSON file to YAML format.
Decode base64Decodes theprovided base64 string.
Decode hexDecodes theprovided Hex string.
Decode JSONDecodes and outputs theprovided JSON string to a JSON object.
Decode URLDecodes theprovided URL.
Encode base64Encodes theprovided text in base64.
Encode hexEncodes theprovided text into Hex.
Encode URLEncodes theprovided 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 outputsall 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.