I am building a flow and I want to fetch the first row value of the output of an union function used loop input.
I am trying to using first function to fetch the first records of each union set of outputs in the array but the flow is not working properly. Below is the flow:
union (
first function input in compose action
Hi @adavana
Please don’t use the two actions of ‘Apply to each’ together. The flow will run too much times for the two actions of 'Apply to each'.
You can simply try the action of ‘filter array’ in the ‘Apply to each’ for ‘Vnumber’.
In my case, I want to get the first record of every union of values for the column 'Email address'.
This is what my excel table looks like:
The result of my flow is:
‘Compose 2’ contains only one item each time, which is the first record of every union of values.
The following flow is for your reference:
The function used:
union(array('kirax@domain.com'),array('kirax2@domain.com'))
first(body('Filter_array'))
Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.