I am building a few flows that need the same basic funtionality. Basically I am wanting to pull emails from an SP list based on a role assigned to each person. Essentially the list is three columns
Name - Role - Email
The way that I have my flow created works however because I have to duplicate this accross multiple flows I am wondering if there is a better way of doing this. Essentially my flow is:
I know that there is a role functionality built into 365 users however this wont work in my situation. any ideas would be helpful.
Your final goal is that sends the corresponding emails according to the items' Role value, right?
Maybe you have no need to get each user's email and store it, you can directly use the Filter query in the Get Items action, just like the following picture shows:
Please have a try, I hope it can help you.
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
In the Roles list there will be a seperate row for each role so a person may be on multiple rows.
Also thank you @v-litu-msft
I have done it that way a few times as well if my flow is smaller or I only need to create one 'email list' and it also works well, however I have found more success building an 'email list string variable' within an 'Apply to Each' if i need to use that email list multiple times within a flow. That said, if I'm having to create multiple 'email lists' within a single flow, I don't really find one method more efficient than the other since I would still have to either have multiple 'Get Items', 'Conditions', or a Switch.
Many congratulations to the Season 1 2021 Flownaut Crew!
Check out our new profile badges recognizing authored solutions!
Check out the community blog page where you can find valuable learning material from community and product team members!