Issue with Office365 Send Email (V2) connector in Power Apps Code App (Invalid Recipients + Connection Duplication) #174
Unanswered
Ayoubbendbyagc
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m facing an issue while using the Office365 – Send email (V2) connector in a Power Apps Code App developed and deployed using PAC CLI.
Context :
Power Apps code app
Email sent via Office365 Send Email (V2) connector
Connection defined explicitly in the power config JSON (shared connection ID specified)
Problem :
Even though the recipient email address is valid, the flow fails with the following error:
{
"status": 400,
"message": "One or more recipients are invalid.",
"error": {
"code": "ErrorInvalidRecipients",
"originalMessage": "At least one recipient is not valid., A message can't be sent because it contains no recipients."
},
"source": "office365-ne.azconn-ne-003.p.azurewebsites.net"
}
Payload used :
{
"emailMessage": {
"To": "my.email@company.com",
"Subject": "Test Email",
"Body": "Email sent by Power Apps",
"Importance": "Normal"
}
}
The email address is correct and works in other apps / flows.
No dynamic value or empty variable is involved.
🔹 Additional Issue (Possibly Related)
Despite explicitly defining the shared Office365 Outlook connection ID in the power.config.json, the app keeps creating a new Outlook connection at runtime instead of reusing the existing one.
This makes me wonder if:
The connector is not resolving the connection properly
The payload is being altered / not passed as expected
Or the connection context is not correctly bound in code apps
Any guidance or workaround would be highly appreciated.
Thanks in advance 🙏
Beta Was this translation helpful? Give feedback.
All reactions