Solved! Go to Solution.
Hi @Mishatandon
You can also check this post out where I have shown how to populate multiple select persons field using Power Automate by populating arrays: https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/10-MS-Flow-hacks-troubleshoots-wor...
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi!
So, the issue is just to build the array?
As @yashag2255 suggests, you can add a second Apply to each inside the current one, assign as its input the following expression
split(item()?['Column3'],';')
This post explains how to add an expression
https://flow.microsoft.com/es-es/blog/use-expressions-in-actions/
Or, instead of adding a second 'Apply to each', you can add a Select action block inside your current 'Apply to Each' instead to do the same in a faster efficient way, so you assign as Select input the same expression as before...
Now inside the Select action block, on the Map Table, assign as Name the text
Claims
and assign as Value the following expression
item()
So, assuming current iteration has 2 emails (email1@contoso.com, email2@contoso.com) Select output should look like this
[
{
"Claims": "email1@contoso.com"
},
{
"Claims": "email2@contoso.com"
}
]
Now just need to assign Select output to your Create Item by clicking first on the icon on the right
Hope this helps
Proud to be a Flownaut!
Hi!
Can you share a screenshot from your current flow design?
Also, in your excel, which separator character are you using between email addresses?
Sounds your challenge is similar to the one described here, right?
Proud to be a Flownaut!
Hi @Mishatandon
You can also check this post out where I have shown how to populate multiple select persons field using Power Automate by populating arrays: https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/10-MS-Flow-hacks-troubleshoots-wor...
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Mishatandon
Glad to hear that! Thank you so much.
Coming back to the issue you are facing,
You get the row from excel and then the column that has semi colon separated emails. Use the split function to split the emails on the semicolon and create an array with this. And then you can use an apply to each loop to append to a new array variable with "Claims" as the key and "selectcurrentitemhere" as the value so that the array is appropriately constructed and can be passed for the multi select persons field.
This setup would support a single value as well and is dynamic so you do not have to worry about the number of emails.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @yashag2255 ,
Thanks for the explanation but apologies again I could not find the split function to use further after I get details from excel. screesnhots of the flow would really really be helpful for beginner like me.
Attaching my flow.
Hi!
So, the issue is just to build the array?
As @yashag2255 suggests, you can add a second Apply to each inside the current one, assign as its input the following expression
split(item()?['Column3'],';')
This post explains how to add an expression
https://flow.microsoft.com/es-es/blog/use-expressions-in-actions/
Or, instead of adding a second 'Apply to each', you can add a Select action block inside your current 'Apply to Each' instead to do the same in a faster efficient way, so you assign as Select input the same expression as before...
Now inside the Select action block, on the Map Table, assign as Name the text
Claims
and assign as Value the following expression
item()
So, assuming current iteration has 2 emails (email1@contoso.com, email2@contoso.com) Select output should look like this
[
{
"Claims": "email1@contoso.com"
},
{
"Claims": "email2@contoso.com"
}
]
Now just need to assign Select output to your Create Item by clicking first on the icon on the right
Hope this helps
Proud to be a Flownaut!
I built the flow as per your screenshots and its working great! Thanks to you and @yashag2255 for guiding and helping with the solution! God bless you both!
I added a step to assign permissions as well using 'Column3' which had email id's and that also seems to work fine!
Again thanks for all the help!
Regards
Misha
Hi @Mishatandon,
I am glad your issue has been solved, you could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!
Best Regards,
Community Support Team _ Lin Tu
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.
User | Count |
---|---|
50 | |
41 | |
39 | |
35 | |
34 |
User | Count |
---|---|
72 | |
67 | |
65 | |
55 | |
49 |