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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issues working with Ex...
Power Automate
Answered

Issues working with Exchange mail message properties

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have encountered an issue working with Exchange mail message. While accessing properties From and To it displays Syntax Error, as seen on picture below. I can access the same way all the other properties, for example %RetrievedEmails[0].Date% with no error message. I'm not sure what is wrong there. The To property is a nested list, so I guess I would need to access like this way %RetrievedEmails[0].To[0]% to access the first value of the property. But From property should work like the others, since there is no hint in documentation about otherwise.

 

VaryLu_0-1684216207870.png

Thank you for the assistance on this issue. Below are reference links to the documentation from which I drew.

 

References:

https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/exchange

https://learn.microsoft.com/en-us/power-automate/desktop-flows/variable-data-types#exchange

https://learn.microsoft.com/en-us/power-automate/desktop-flows/datatype-properties#exchange-mail-messages

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    %RetrievedEmail.[‘From’]% or something idiotic like that. 

    what you can do is click the {x} on the field input that shows you all your variables. Next to each one, if they have properties associated with them, there will be a drop-down arrow. Click that and you can select the “From” property, and it will put in the right syntax for you. 

    good luck!

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    So I figured this out by creating new variable and assigning to it value of the Exchange list.

    In pseudocode something like this:

     

    new_var = %RetrievedEmails[0]%

     

    Then I was able to get to the properties of the new_var list a figure out the correct syntax, which is %RetrievedEmails[0]['From']%. I have no idea, why this particular property has to be written in that format, and not like the other properties, for example %RetrievedEmails[0].Date%.

    There is some serious magic behind the curtains.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard