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.
Hi there - So, if a person has multiple roles...are there multiple rows for the same person? Or is there a delimiter of some kind?
-Ed-
Hi @michaelpaul,
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.
Best Regards,
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.
User | Count |
---|---|
78 | |
55 | |
52 | |
43 | |
41 |
User | Count |
---|---|
81 | |
79 | |
75 | |
67 | |
43 |