I have a collection with a list of e-mail adresses (it's dynamic and changes depending on the document that user chooses in my app).
I also have a button to submit a form and I want to send information about the submit to all e-mail adresses in a collection.
Right now my code that runs the flow looks like this:
If(_application_Application_Status.Value = "Waiting for approval",
ForAll(colLeadersEmails,'Step1-Emailtoleaders'.Run(ThisRecord.Value,"Acceptance of Application" & _appliaction.ID,"URL TO DOCUMENT")));
First argument (ThisRecord.Value) is a "send to" e-mail, second argument is the title of the mail and the third is the body.
I do get an error with this line of code which says that first argument is empty.
How do I change the code to be able to pass a few e-mail adresses in the first argument? all of them from the collection?

Report
All responses (
Answers (