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 / When a new email arriv...
Power Automate
Unanswered

When a new email arrives (V3) initialize variable string value from email subject.

(0) ShareShare
ReportReport
Posted on by 20

With the 'When a new email arrives (V2)' for Outlook.com I can then initialize a variable with a simple expression such as:

 

concat(triggerBody()?['Subject'],triggerBody()?['From'])

 

However I can't do this with "When a new email arrives (V3)' for Office 365 Outlook.  It just returns null. Is it broken or do I have to use some other method?

 

How can I get the 'subject' into a string variable from this trigger?

 

Thanks

-Mike

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Try the following, which is based on dynamic content:

    concat(triggerOutputs()?['body/subject'],triggerOutputs()?['body/from'])

     

    ekarim2020_0-1631316324333.png

    Ellis

  • Mrudd Profile Picture
    20 on at

    Thanks for the suggestion.  I tried that, but it still returned blank.   I know we recently enabled MFA, could that be causing any kind of an issue?  I have already gone through and reauthorized my connections though.

     

    Thanks

    -Mike

  • Mrudd Profile Picture
    20 on at

    Also in the attempts. I tried to just select the dynamic content.  However PowerAutomate automatically wraps that in an 'Apply to each' object.  Then the initialize variable doesn't work.

    Mrudd_0-1631556336748.png

     

  • Verified answer
    Mrudd Profile Picture
    20 on at

    For anyone searching, I found a way to get this.  I had to Initialize Variable and just make the value something that worked first. eg: triggerOutputs()?['Body']

     

    Then below in an "apply to each" I could then use 'Set Variable' to select the dynamic content 'Subject' or any concat/substring expression.

     

    -Mike 

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard