Introduction
In Power Platform, at times we must skip few elements from an Array or few characters from a given strings. In these scenarios, Skip function in Power Automate can be used. As an example Employees String Array and Employee Name String variables are used to explain this behaviour.
Step 1
Login to the required Power Apps environment using make.powerapps.com by providing username and password and click on Flows on the left-hand side as shown in the below figure.
Step 2:
Click on New Flow and select instant cloud flow and provide the trigger as Manually trigger a flow and click on Create as shown in the below figure.
Step 3:
Name the flow as Skip Function and take a parallel branch and one side of branch take an initialize variable and name it as Set Employees Array and provide values.
Step 5:
Now under Set Employees Array step take a compose action and name it as Employee Details With Skip Function and provide the inputs with skip function which Returns the elements in the array starting at index Count syntax
Step 6:
Now under Set Employee Name take a compose action and name it as Get Employee Name With Skip Function and provide the inputs as as shown in the below figure.
Step 7:
Save and test the flow and observe the results as shown in the below figure.
Note:
->Make sure to save and run the flow whenever you try expressions.
->Make sure to provide input array in proper acceptable format of string array.
->Also use double quotes for the elements in the array