I need to get the subject from the first email that I get from the get Email activity. I already used the Top 1 property in the Get Email activity so I am expecting one email. However, when I use the initialize variable and use the first function to get the subject it surrounds with the Apply to each block and I do not get the subject in the list as well, am I missing something?
Power Automate tends to think that you want to loop through all of them so its trying to help even though that's not what you are trying to do. Its frustrating.
So inside the first() function insert the array of the output so Get emails -actions outputs body/value. Choose the body/value from the dynamic content list so that Power Automate doesn't force the apply to each.
Then outside the first put the property you want so in this case ['subject']
Was this reply helpful?YesNo
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.