Good morning/afternoon Power Users,
I am having some issues with getting this to work. I would like to send emails to multiple users using ForAll and Set. May I please have some guidance on how to correct the script so it will work? This is my current script:
ForAll(SelectedEmails,
//Retail.
If(varSelectedPPQ.Retail="true", Set(varMdsdApprovalType,"Retail"); Set(varCurrentOwner,varRetailEmail);
Office365Outlook.SendEmailV2("xxxxx@xxxxx.com","MD/SD Retail Review",htmlEmailBody.HtmlText));
//Services.
If(varSelectedPPQ.Services="true", Set(varMdsdApprovalType,"Services"); Set(varCurrentOwner,varServicesEmail);
Office365Outlook.SendEmailV2("xxxxx@xxxxx.com","MD/SD Services Review",htmlEmailBody.HtmlText));
//Food.
If(varSelectedPPQ.Food="true", Set(varMdsdApprovalType,"Food"); Set(varCurrentOwner,varFoodEmail);
Office365Outlook.SendEmailV2("xxxxx@xxxxx.com","MD/SD Food Review",htmlEmailBody.HtmlText));
//Fuel.
If(varSelectedPPQ.Fuel="true", Set(varMdsdApprovalType,"Fuel"); Set(varCurrentOwner,varFuelEmail);
Office365Outlook.SendEmailV2("xxxxx@xxxxx.com","MD/SD Fuel Review",htmlEmailBody.HtmlText));
//FMO
If(varRetailCount + varServicesCount + varFoodCount + varFuelCount = varRetailResponse + varServicesResponse + varFoodResponse + varFuelResponse, true,false);
😞
IF(lbl_CountComparison,true,
Office365Outlook.SendEmailV2 (xxxxx, "FMO Scope Review",
"***** NO WALKER ACTION IS REQUIRED AT THIS TIME *****" & "<br> " &
"Approval Link: " & "https://apps.powerapps.com/play/ xxxxxxx & ppqID=" & InsertedRecord.ID & "<br>" );

Report
All responses (
Answers (