Hi,
Hope somebody can help me.
i have a table into an excel formatted like this: (this is an example)
User | Elements List | AdminUser | e-mail column
--------------------------------------------------------------------
Axel Element 1 AdminUser 1 email AdminUser 1
Axel Element 2 AdminUser 1 email AdminUser 1
Axel Element 3 AdminUser 1 email AdminUser 1
Bob Element 4 AdminUser 2 email AdminUser 2
Bob Element 5 AdminUser 2 email AdminUser 2
Bob Element 6 AdminUser 2 email AdminUser 2
Frank Element 7 AdminUser 3 email AdminUser 3
I'm trying to setup a Flow that send email to a specific AdminUser,
The body of this email has to contain the name of an User and the Elements List which User has some rights on it.
Example:
Axel has rights to see Element1, Element2, Element3
AdminUser 1 has to be notified about that and has to receive one email with body like this:
Hello, this is to remind that Axel has rights on:
Please check
Obviously each time the Flow runs and find different AdminUser email it needs to send different mails to different receiver with the same format as the example given.
Problems:
Goal:
Hope that i clarified my need.
Thank you in advance.
Solved! Go to Solution.
Hi @En1gma
I did some more resarch on pulling out records by grouping a common ID and I found that there is a thread on similar lines. You can follow the solution mentioned here :
to get the values with Dynamic IDs and then use the flow I showed you to iterate for each User and send email to them.
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 @En1gma
Please refer to the screenshot below:
You can use the filter action in the List Rows action and get the records corresponding to a particular user. Later you can use an apply to each to append each row value to an array and finally send the email by joining the items of the array with the empty line string. Please check the variables and replicate accordingly.
Here, Description is a column in my excel and replace it with the element of yours. Column 5 is email address and you can replace that with the email column of your excel sheet. In the List rows action, you can see the filter query User eq Alex. If you have multiple users, put them all in an array and create another loop to list the rows accordingly.
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!
Thank you @yashag2255 i've appreciated you quick reply
I've set up the Flow as you suggested and actually it works perfectly if i need to send the email to a specific single user.
What i need now is e.g:
User | Elements | Email |
-------------------------------------------
Axel 1 emailX
Axel 2 emailX
Axel 3 emailX
Robert 4 emailY
Running the Flow the output should be:
Send email to: emailX
Hi, this is to remind that Axel has rights on 1,2,3
Send email to: emailY
Hi, this is to remind that Robert has rights on 4
the problem i see is the filtering, how can i manage to filter each time by user?
Thank you very much for your help.
Hey @En1gma
" If you have multiple users, put them all in an array and create another loop to list the rows accordingly. " How many users o you have? Is it fixed? Can we have a list of users that are there in the excel sheet? if so, we initialise an array variable and put all the users in that array and create a apply to each loop and add all the consequent actions from the flow to the apply to each action and in the filter query of list rows, replace the word"Alex" with the current item of the apply to each.
Hope this Helps!
Hi @yashag2255,
The users number is not fixed and it will variate over time, we'll update the sheet accordingly.
This is the actual of my sheet:
User | Servers | Email
--------------------------------------------
Axel 1 emailX
Axel 2 emailX
Robert 3 emailY
Robert 4 emailY
initialize section:
List rows and array population
List Rows in apply to each with filter with current item.
Is this correct?
Now we need to send the email for each user with the related Servers list.
Thanks for your help.
Hey @En1gma
This will not work. As you are having the list of admin names where there are enteries mroe than 1 (Alex has 3-4 machines and his/ her name appears 3-4 times) and this flow will iterate for each and every Alex and send an email so many number of times.
Hi @En1gma
I did some more resarch on pulling out records by grouping a common ID and I found that there is a thread on similar lines. You can follow the solution mentioned here :
to get the values with Dynamic IDs and then use the flow I showed you to iterate for each User and send email to them.
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!
Thank you @yashag2255
I've done it! with links you provided i've came up with a solution that fits our needs.
Best regards,
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
30 | |
29 | |
29 | |
20 | |
11 |