Hi
I am trying to collect email addresses from SharePoint List. following two formulae work fine if I dont use "email" and "{}" . But when I use it in the following way I doesn't fetch anything. This is triggered when user presses a button on an item of gallery.
I need to include "email" property to use it in Concat function in Bcc part of email as mentioned at the end of the code.
Regards
If(ThisItem.'Status of Action(A)'.Value = "Pending",
Collect(colEmails,{email: Filter(SP_List,Role = "A")}));
If(ThisItem.'Status of Action (B)'.Value = "Pending",
Collect(colEmails,{email: Filte(SP_List,Role = "B")}));
//I want to use this collection as Bcc email address in an email through PowerApps
{Bcc: Concat(colEmails,email,";"), Importance: "Normal"}
The above code works fine in the following way, But I dont know how to use this array in Bcc with Concat function as there is no field email in this case.
{Bcc: Concat(colEmails,email,";")}
If(ThisItem.'Status of Action(A)'.Value = "Pending",
Collect(colEmails,Filter(SP_List,Role = "A"));
If(ThisItem.'Status of Action (B)'.Value = "Pending",
Collect(colEmails,Filte(SP_List,Role = "B"));