Trim text Action(Power Automate Desktop)


Japanese version.

This action removes whitespace (full/half-width spaces, tabs, and line breaks) from the left, right, or both sides of the specified text.

This function is a counterpart to "Pad text" and is similar to the TRIM function in Excel.

How to use

Drag Trim text from Text onto the Workspace.

Set parameters.


Text to trim

Specify the target string.

What to trim

Select whether the target for deletion is the beginning, the end, or both.

Variables produced


The resulting edited text is stored.

If there are no characters to be deleted, the text is stored as it is specified in the text to be trimmed.



Text Actions