cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Error message :The to array is required for all personalization objects, and must have at least one email object with a valid email address.

 

Hello Expert  ,

 

I'm  running the following  flow .

 

My goal is to send an email with the ticket number  to owner of  case incident.

 

But I m getting error message : 

{"errors":[{"message":"The to array is required for all personalization objects, and must have at least one email object with a valid email address.","field":"personalizations.0.to","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.to"}]}

 

( I attached the screen shot) 

What is the best  way to proceed ? 

 

What are your suggestion ?

 

Thank you!

 

 

Case -valid email issue1.PNG

 

 

Case -valid email issue2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Brad_Groux
Community Champion
Community Champion

Your error is SendGrid API related, and not Power Automate related. Please refer to the SendGrid Web API V3 documentation which is being referred to in the POST output. Please also refer to the SendGrid connector documentation, and notice that the Email parameters are of type String. What is likely happening, is the dynamic email address you are passing through, is not of the type string. See how to use the Compose or Join data operations to convert to a string.

👨🏻‍💻 If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

 

View solution in original post

3 REPLIES 3
Brad_Groux
Community Champion
Community Champion

Your error is SendGrid API related, and not Power Automate related. Please refer to the SendGrid Web API V3 documentation which is being referred to in the POST output. Please also refer to the SendGrid connector documentation, and notice that the Email parameters are of type String. What is likely happening, is the dynamic email address you are passing through, is not of the type string. See how to use the Compose or Join data operations to convert to a string.

👨🏻‍💻 If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE 👍.

 

View solution in original post

v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

I'm confused that the screenshot shows that you are using the Send an email notification (V3) action, but the error message shows SendGrid related errors.

 

Did you retest the Flow shown in the screenshot and see if the errors are the same?

 

In addition, you can add a Compose action on the Send an email notification (V3) action to output the value of the Email Address, and check whether the format is as expected.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Latingraduate
Frequent Visitor

Hi all!  I had a perfectly working flow and then all of a sudden, it is giving me this error message on a Send Email task.  Please help!  I am fairly new to power automate and am unable to understand from the solution on what needs to be done to fix the error so that it can complete remaining workflow tasks.

Output Error:  

{
    "statusCode"400,
    "headers": {
        "Access-Control-Allow-Origin""https://sendgrid.api-docs.io",
        "Access-Control-Allow-Methods""POST",
        "Access-Control-Allow-Headers""Authorization,Content-Type,On-behalf-of,x-sg-elas-acl",
        "Access-Control-Max-Age""600",
        "X-No-CORS-Reason""https://sendgrid.com/docs/Classroom/Basics/API/cors.html",
        "Strict-Transport-Security""max-age=600; includeSubDomains",
        "Timing-Allow-Origin""*",
        "x-ms-apihub-cached-response""true",
        "Date""Fri, 25 Jun 2021 17:39:29 GMT",
        "Content-Length""338",
        "Content-Type""application/json"
    },
    "body": {
        "errors": [
            {
                "message""The to array is required for all personalization objects, and must have at least one email object with a valid email address.",
                "field""personalizations.0.to",
            }
        ]
    }
}

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,044)