Trim variable transform action

Use case

You have a string that has been grabbed from an API return, however due to bad formatting the string starts or ends with extra spaces that need removed.

Overview

A screenshot of trim variable objects transform action, seen in the actions list menu of the workflow builder canvas.

Trim whitespace characters from a variable.

Parameters

Parameter
Description
Required

Variable Contents

Variable to trim

Usage

Example: Trimming a string

Variable Contents: This is a test starting and ending with 3 spaces each

Results output

Result of Example:

"This is a test starting and ending with 3 spaces each"

In the above return the " characters were kept to show the spaces being removed. These would not be present in the actual return. Only the original string without whitespaces would be returned.

Last updated

Was this helpful?