startsWith function. String.(Power Automate Cloud flows)

Japanese version.

Determines if the text begins with the specified string.

Spec

startsWith('<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 startsWith 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

If startsWith('abcdef','ab'), The result is True (yes) because "abcdef" starts with "ab".

The same is true for startsWith('aBcdef','Ab'), since it is case-insensitive.

---

Links

String Functions(Power Automate Cloud flows)