web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to retrieve email ...
Power Automate
Unanswered

How to retrieve email from ODATA format, required for sending e-mail

(0) ShareShare
ReportReport
Posted on by 255

Hi, I have problem with sending email to specific address. 

Brief description: I retrieve items which have email address. I grouped it together and send email with all items to one email address.

 

I was inspired by this procedure: https://powerusers.microsoft.com/t5/Building-Flows/flow-to-send-single-email-for-set-of-records-in-Sharepoint-list/td-p/176057

 

Everything works except sending an email. It takes email address in ODATA format (maybe this is the problem). In action "sending email" the output of this action looks like:

"To": {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":1,"Value":"example@example.cz"}; 


and alert is: BadRequest., and some of the reciever are not valid. 

But when I write only example@example.cz, into the box TO, it works without trouble. 
So it is necessary to trim this output? or problem is somewhere else? 

 

Now I have this solution's output:

Bez názvu.png

 

and this is solution: 

Výstřižek.JPG

Current item bears data as I mentioned above: "@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":1,"Value":"example@example.cz"

 

Have anybody experience with this? Thanks for answers.

Categories:
I have the same question (0)
  • Brad_Groux Profile Picture
    4,556 on at

    If you'll review the Send an email (V2) documentation, it states: 

    To email
    Specify email addresses separated by semicolons like someone@contoso.com
    Key: To

    I believe the issue you're having is the format of the data you are trying to pass into the to box. Have you tried initializing a string variable with the email address data and passing the variable into the To box?

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @TomasG ,

     

    I guess this is because you did not configure Choice value in the Value field when configuring Append to array variable action.

    Generally for Choice column, if you need to reference the field value, you need to reference Choice column value.

     

    For example, the type of Email column is Choice:

    32.PNG

    If you filter the items through Filter array and use Expression to get the field values, you need to configure the following expression:

    item()['Email']['Value']

    33.PNG

     

     

    Or you could keep your current configuration and solve your problem with Parse JSON action:

    • Fill the following content in the location shown to generate the schema.
    {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":1,"Value":"example@example.cz"}

    34.PNG

    • Then configure Dynamic content originally configured in To field in Content.
    • Finally, the resolved Value is configured in To field, which is the required email address.

    35.PNG

     

    Please take a try.

     

    Best Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard