trim function. String.(Power Automate Cloud flows)

Japanese version.

Remove leading and trailing whitespace (half/full-width spaces and tab characters) from text.
This function is used to remove unnecessary white spaces that may be present in keyboard input values or data imported from other applications.

Spec

trim('<text>')
ArgumentDefaultDescription
textRequired fieldOriginal text.

How to use

This function is used for text parameters.

In many cases, it is used to initialize or set variables of type "String".

Clicking on trim in the "Expression" tab sets the function name and () in the formula field.

If you see something like the following, your settings are complete.

You can change the contents of the function by clicking on the purple icon.

When dynamic content or variables are used in expressions, special specifications are required.

(How to get dynamic content with expressions.)

Examples of arguments and results

For example, trim(' abc ') will result in "abc".

---

Links

String Functions(Power Automate Cloud flows)