I've created an app and it seems to work fine while I'm testing it with my user. I have expanded my testing to other users in my organization and I'm getting the error message as shown to the left.
I have ensure that the person who receives this error has "Contribute" access to the sharepoint lists (data sources). I also use test labels as per best practices while devloping a powerapp to ensure the email address is valid before hitting send/submit.
Does anyone have any ideas on how to solve this? I'm beginning to think that it is not an issue with how I built the powerapp, but more so something in my system settings or connections.
Any thoughts?
Hi @Anonymous,
Would you please let me know the whole formula used in the Office365.SendEmail () ?
The message indicates the first Syntax is not in the right format.
Please verify the Email address, or the control used to enter the Email Address.
Office365,SendEmail(To, Subject, Body,{Additional FIelds})
For more details, see the documentation:
Regards,
Michael
I have opened a ticket with MS to resolve this issue and it has been raised as a high severity bug. Not sure I'll get a technical solution response where I could paste into this thread after.
Stay tuned.
Hi,
Did you ever get an answer from Microsoft on this? I get the same error on a PowerApps form, though the email does still get sent. I just don't want users to see that error and think that there's something wrong. I'm using a label and setting its text to the email address from a person field, and then using the label text as the To value in the Office365.SendEmail action. The label text looks correct and the email itself does get sent.
Thanks.
Thanks. I just tried this but got the same result when submitting the PowerApps form. It still doesn't like the To parameter. The Flow works, though, and sends the email, but the error still comes up on the PowerApps form.
Looks like the error was due to using the text of a label field for the email address. I switched it to a text field (it's going to be hidden, anyway, because it doesn't get the address from user input but from a formula that uses the output of another formula that compares two table variables -- yes, getting complex) and I did not get the error afterwards. Basically, I set a variable to the value of a multi-select people picker field when the screen becomes visible (to get current selection), then I set another variable to the new value of the people picker (OnChange), compare the two via a filter operation and get new entries and old entries, exclude the current user from both if present, and generate a semicolon-separated string of emails for both cases. All this because I needed to send emails to new assignees and previous assignees for a task.
Hey thats interesting. I am going to be creating an app in the near future where this may be required. Would you be willing to share the coding you are using with all private matters blacked out? if so perhaps you can direct message me if that is possible through the powerapps community.