endsWith function. String.(Power Automate Cloud flows)

Japanese version.

Determines if the text ends with the specified string.

Spec

endsWith('<text>', '<searchText>')
ArgumentDefaultDescription
textRequired fieldText to be examined (long text).
searchTextRequired fieldPartial text (short text) to be searched

How to use

This function is used for Boolean parameters.

In actions it is often used in "Condition".

It is also used to initialize or set variables of type Boolean.

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

Specify text enclosed in "'" and delimited by "," and click OK.

If you want to use dynamic content or variables, the ,delimiter is the same.

(How to get dynamic content with expressions.)

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.

Examples of arguments and results

With endsWith('abcdef','ef'), The result is True (yes) because "abcdef" ends with "ef".

The same is true for endsWith('abcdeF','Ef'), since it is case-insensitive.

---

Links

String Functions(Power Automate Cloud flows)