endsWith function. String.(Power Automate Cloud flows)
Determines if the text ends with the specified string.
Spec
endsWith('<text>', '<searchText>')
Argument | Default | Description |
---|---|---|
text | Required field | Text to be examined (long text). |
searchText | Required field | Partial 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.
For those who want to learn Power Automate Cloud flow effectively
The information on this site is now available in an easy-to-read e-book format.
Or Kindle Unlimited (unlimited reading).
You willl discover how to about basic operations.
By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.
Discussion
New Comments
No comments yet. Be the first one!