Hello all,
I have generated an output from Apply to each action. May I ask how can I combine these outputs and generate something like :
user1@yahoo.com;user2@yahoo.com;user3@yahoo.com
Thank you very much
Solved! Go to Solution.
Hi @bravobravo
Sure it's quite simple. You'll do it in no-time.
At the beginning of your, Power Automate define a variable of type string.
Then after each "Compose," add an "Append to String Variable." It will append the value of your Compose, but you need the ";" to be also added, so you need a simple formula to add it:
concat(outputs('Compose'),';')
Now you have a variable with the information that you need.
Can you please check if and let me know if you have any questions?
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel
Hi @bravobravo
Sure it's quite simple. You'll do it in no-time.
At the beginning of your, Power Automate define a variable of type string.
Then after each "Compose," add an "Append to String Variable." It will append the value of your Compose, but you need the ";" to be also added, so you need a simple formula to add it:
concat(outputs('Compose'),';')
Now you have a variable with the information that you need.
Can you please check if and let me know if you have any questions?
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel
I am thinking the exact same way as @manuelstgomes showed, very detailed solution!
Hi there
When I try this and append to variable string the output of the compose from within the apply to each the concat of the compose returns only the the value per loop rather than all loops together. I was thinking the append needs to happen outside the apply to each grouping but the compose output is not available outside the apply to each grouping. Any help on this would be apprecited.
Regards
Jon
I want to do the same thing. If you have found a solution, it would be a great help if you could share also.
I think your 'compose' function goes within the loop, your 'append string to variable' goes outside the loop, but uses the output of the compose function - or that just worked for me. Very useful thread!
Thanks for your idea. I need a help. I need to update that output to SharePoint list column. the current one i tried not working. Is there any mistake or suggestion?
so after writing set variable, compose, initialize variable how to set final output value to combine all 3 values?
What if I need to perform this operation as mathematical operation.?
you want to:
join('arrayaction', ',')
User | Count |
---|---|
95 | |
46 | |
21 | |
18 | |
17 |
User | Count |
---|---|
141 | |
50 | |
43 | |
40 | |
29 |