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 / Creating flow: Mark as...
Power Automate
Unanswered

Creating flow: Mark as read all outlook message that contains a subject text, if an email received with another specified text

(0) ShareShare
ReportReport
Posted on by 6

I tried to use New Bing AI to get the answer, but no luck.

 

So, there is an error monitoring system that sends an e-mail when an error is happened. And sends another when the error is disappears and everything is going OK. In this case the error message would be unread but I don't want to be unread because the error is solved, so the error waring e-mail is pointless.

 

I made an outlook with a flow as the Bing AI advised:

  1. When a new email arrives (V3) - Advanced -> Subject filter: "Solved"
  2. Get e-mails (v3) - Advanced -> Subject filter: "Warning"
  3. Mark as read or unread v3 that converts to "Apply to each"

    Bramo_1-1681139790663.png

    Bramo_2-1681139808318.png

    But I don't understand what to add as "Select an output from previous steps" in "Apply to each" and what as "Message ID" in "Mark as read or unread".

    Bramo_0-1681139742731.png

     

    What am I missing?

Categories:
I have the same question (0)
  • VictorIvanidze Profile Picture
    13,073 on at

    Each message can be identified by ID.  Don't place "Subject" to the "Message Id" field.  

  • Bramo Profile Picture
    6 on at

    Still out of luck, getting the following error:

    The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Get_emails_(V3)')?['body/value']' is of type 'Null'. The result must be a valid array.

    Bramo_0-1681197386740.png

    The "Apply to each" setup is the following:

    Bramo_1-1681197446562.png

    Do you have idea?

    Thank you.

  • VictorIvanidze Profile Picture
    13,073 on at

    Show output of "Get emails (V3)"

  • Bramo Profile Picture
    6 on at

    I've set the the  "Apply to each" / "Show an output from previous steps" as "Get email (V3)" - "value (A list of the response objects)". The "Get emails (V3)" setup the same as in my first post.

  • Bramo Profile Picture
    6 on at

    Tried with 

    substringof('Warning', Subject)

    in the "Search Query" in Get emails (V3) but no success.

     

    Even if I'm testing emails with subject only with 'Warning' and 'Resolved' text got the error to 'Apply to each' :

    ExpressionEvaluationFailed. The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@outputs('Get_emails_(V3)')?['body/value']' is of type 'Null'. The result must be a valid array.

    Bramo_0-1681644487139.png

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard