I have a collection called as requiredCol_1 like this,
Name ID ToAddress Status
Abc 123 asdfg@example.com,koldef@example.com,asdasdasfda@example.com A
Def 234 nanasd@example.com,asdfg@example.com A
Ghi 567 asdfg@example.com,asdasfg1@example.com 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
asdfg@example.com
koldef@example.com
asdasdasfda@example.com
nanasd@example.com
asdasfg1@example.com
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 asdfg@example.com will look like,
To :- asdfg@example.com
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");