Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Need help to fix the bug in recurrence Trigger flow

(0) ShareShare
ReportReport
Posted on by 6

Requirement: Using PA free License. Trigger the flow everyday at 6.30pm to check if a specific subjected email is received in a mailbox. If received move it backup folder, if not received send email notification to Service Desk.

 

Attached the error flow for reference

 

Apply to each -> value 

Condition -> item()?['Subject'] contains 'Test'

 

Error: Cannot read properties of undefined message id

 

 

  • Swetha_S Profile Picture
    6 on at
    Re: Need help to fix the bug in recurrence Trigger flow

    Thank you Nived for the quick response. This solution worked!!!

  • Verified answer
    Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Need help to fix the bug in recurrence Trigger flow

    Hi @Swetha_S 

     

    I don't understand why you have used two triggers in flow which is not allowable.

     

    Recurrance trigger (which you have used at top) is the trigger which makes the flow to run at specified time in a scheduled manner.

    while when mail arrives is another trigger which triggers when mail arrives, and one thing to note is you can't place two triggers in your power automate workflow.

     

    In your case, flow should be like this:

     

    1. use recurrance to run it daily at 6:30 p

    Nived_Nambiar_0-1704481206271.png

     

    2. use get emails to get all emails with a specific subject from specific folder in outlook account (in my case, i am using subject filter as Issue with XYZ System)

    Nived_Nambiar_1-1704481275174.png

     

    3. use condition action to check whether there are mails available with that subject filter as part of get emails output

    Nived_Nambiar_2-1704481333687.png

     

    Expression used in Left side:  length(outputs('Get_emails_(V3)')?['body/value'])

     

    if the condition is true (ie emails are present)

     

    then use apply to each to loop through each emails and then move the mail to designated folder like below

    Nived_Nambiar_3-1704481406839.png

     

    (in my case, i am moving to NN folder)

     

    if condition is false, use send email in no branch like below

    Nived_Nambiar_4-1704481462416.png

     

     

    Overall flow looks like this:

    Nived_Nambiar_5-1704481493679.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow