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
Solved! Go to Solution.
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
Try the following, which is based on dynamic content:
concat(triggerOutputs()?['body/subject'],triggerOutputs()?['body/from'])
Ellis
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
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.
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
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
27 | |
22 | |
15 | |
13 |
User | Count |
---|---|
140 | |
42 | |
42 | |
35 | |
30 |