All pages
Powered by GitBook
1 of 1

Loading...

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

Trim whitespace characters from a variable.

Parameters

Parameter
Description
Required

Usage

Example: Trimming a string

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

Results output

Result of Example:

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.

Variable Contents

Variable to trim

"This is a test starting and ending with 3 spaces each"
A screenshot of trim variable objects transform action, seen in the actions list menu of the workflow builder canvas.