I have a collection called as requiredCol_1 like this,
Name ID ToAddress Status
Abc 123 [email protected],[email protected],[email protected] A
Def 234 [email protected],[email protected] A
Ghi 567 [email protected],[email protected] A
I am looking to send email to each user and each User should receive only one email.
To do that,
I have created a requiredCol_2 as another collection
ToAddressUnique
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
I have managed to narrow down my problem now. Every User in the above collection (requiredCol_2) will receive an email. And my email body will have the Name and ID concatenated and in the form of list relevant to that particular email id.
For Example an email sent to [email protected] will look like,
To :- [email protected]
Subject :- Please Look at
Body:-
Click here and Kindly review the following,
- Abc - 123
- Def - 234
- Ghi - 567
Click here is a hyperlink, which I want to pass through a variable.
I am new to Powerapps and flow. So, please explain me the steps to get this to work.
This is my code so far in Power Apps - Send Email Button
//Create a Collection
ClearCollect(requiredCol_1 , Filter(Table1, User().Email in Lower(Allocators), Status = "A"));
//Unique List of Approvers
ClearCollect(requiredCol_2,Distinct(
Split(
Concat(requiredCol_1 , ToAddress, ","),
","),
Result));
//Hyperlink Creation
set (hyperlinkvalue, "WWW.Google.Com");