cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
OnlyRodd
Level: Powered On

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
Super User
Super User

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

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

2 REPLIES 2
Super User
Super User

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

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

Community Support Team
Community Support Team

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

 

Hi @OnlyRodd ,

 

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.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,431)