[New post] Power Automate expressions #1 : How to use collection functions
soundharya subhash posted: " These functions are used for arrays and strings. They may be used to check if an array is empty, to grab the first, or last item, or even for join, union, and intersection operations. Lets see an example: MyCars array ["Tata","Volvo","BMW"] "
These functions are used for arrays and strings. They may be used to check if an array is empty, to grab the first, or last item, or even for join, union, and intersection operations.
Lets see an example:
MyCars array ["Tata","Volvo","BMW"]
Now the length would be 3
contains of "BMW" car returns true
join with comma as single string would give Tata,Volvo,BMW
Let see how it works in Power Automate
I have initialized a variable array, and provide my array as input
Add next action, compose step
In compose step, go to expressions and type length function and for input select our array as input and click ok
Save and test the flow to see the results
Now, will check how contains will work. For contain function we need to pass 2 inputs one is array collection and other is string that we want to check if it is present in the array
Click ok and save the flow to test it, if the string is present in the array it returns true
Now will check how join will work, we have to give two inputs here one is our array and other is the delimiter by which the array should be joined
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.