Hi,
I used the Office365Outlook data source in PowerApps to send out an email notification based on fields and buttons clicked within a canvas app. I get an error from some individuals, and for some it pushes through correctly.
The code I used is something like this.
Office365Outlook.SendEmailV2("Email Address Here", "Subject Title Here", "Email Body Here")
For some resources, this sends out correctly using their account. However, for one resource, the email account sends using a shared mailbox.
I'm thinking it needs to specify which account, and so I tried using "From" inside the code. It looks like this. "varUser.Email" is a variable holding the current user's email.
Office365Outlook.SendEmailV2("Email Address Here", "Subject Title Here", "Email Body Here", {From: varUser.Email})
Again, this works for most users. However, for some, PowerApps returns an error message:
Office365Outlook.SEndEmailV2 failed: {"status":403, "message": "You are not authorized to send mail on behalf of the specified sending account" [...] code: "ErrorSendAsDenied"
Is there anything I'm missing? Or anything I should check out? Thank you. Any help is appreciated