I am stuck with an expected operator error in PowerFx and I cannot move forward.
Considering that my first expression works correctly using commas, I assume that my argument delimiter should still be a comma.
For example, this works without issues:
Set(EmailBody, "<p>Text of my variable</p>")
However, when I try to send the email using Office365Outlook.SendEmailV2 with all the arguments defined, I get the following error:
"Expected an operator such as +, * or & at this point of the formula"
This is the code I am using:
Office365Outlook.SendEmailV2(
PeopleAddedGallery4.Selected.Mail;
"EMAIL Subject";
EmailBody;
{
IsHtml: true
// Attachments:
// ForAll(
// AttachmentsControl1.Attachments;
// {
// Name: ThisRecord.Name;
// ContentBytes: ThisRecord.Value
// }
// )
};
)
No matter what I try, I cannot get past this error.
My goal is to be able to send the email with all these arguments properly defined, including HTML body and attachments.
What am I doing wrong with the argument delimiters or the function syntax?