Using Slice function in Power Automate

Power Automate has many different functions that can solve many different problems. Text functions in particular are used to manipulate strings that can streamline workflows. Here we will be exploring the slice text function and how to utilize it in Power Automate.

Firstly lets familiarize ourselves with the slice function syntax shown below:

slice('<text>', <startIndex>, <endIndex>?)

<text> - the string you want to manipulate
<startIndex> - the integer place on the string you want to begin your substring.
<endIndex> - the integer place on the string you want to end your substring.

Step-by-Step Guide to Slice function Example

Step 1: Create A New Instant Cloud Flow.(flow.microsoft.com)

Step 2: Add an initialize variable with the following details as a template:

Step 3: Add a compose action card with the following details.

Step 4: Save & Test the flow and you should get the following results.

Spread the word

Leave a Reply