Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Need help to set up the 2 trigger condition in my Cloud flow

(0) ShareShare
ReportReport
Posted on by

Hi All,

I'm new to the power automate and my requirement is to run the flow on every month of 15th to check the attachment is there in the shared mailbox inbox folder and if its there and the flow runs to get the attachment and create the monthly folder. If the attachment is not available on 15th then the flow has to re run by 16th on next day to check the same attachment

Kindly help me 

 

Priyanka03_0-1666717186102.png

Priyanka03_2-1666717321134.png

 

Priyanka03_1-1666717232080.png

formatdatetime(utcnow(),dd) is equal to 15

formatdatetime(utcnow(),'dd') is equal to 16

Priyanka03_3-1666717418447.png

 

Thank you .

 

 

  • Pstork1 Profile Picture
    66,816 Most Valuable Professional on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    As I said, to prevent that you need to add a condition to see if the folder exists and if it does then don't do anything.  There is no way to let the run on the 16th know that the email was there on the 15th other than that the action was already taken.

  • Priyanka03 Profile Picture
    on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    I done the testing as its running both days but it's override the files inside the folder which i don;t want to be overrided.

    If the attachment is find on 15th then it will perform the action and move to next steps on flow

    on the next day of 16th it won't do anything should terminate it .

  • Pstork1 Profile Picture
    66,816 Most Valuable Professional on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    No, you can't use multiple triggers.  But if you use the when an email arrives trigger it will run when the email arrives.  There is no way to then tell it to run on the 15th and 16th.

  • Priyanka03 Profile Picture
    on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    I used the trigger for when a new email arrives so can we use the multiple triggers .

     

    Priyanka03_0-1666726641648.png

     

  • Priyanka03 Profile Picture
    on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    Priyanka03_0-1666725655471.png

    Shall we try like this ? does it work ?

  • Verified answer
    Pstork1 Profile Picture
    66,816 Most Valuable Professional on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    The flow will run on the 16th no matter what.  But if the folder already exists it won't do anything.

  • Priyanka03 Profile Picture
    on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    Thank you for quick response. Much appreciated. Its really helps me a lot

    I would like to clarify again..

    i'm checking the attachment on 15th in shared inbox folder if its there then it will create month folder

    If attachment is not there in my email on 15th then the flow runs on 16th and it will create month folder

     

  • Verified answer
    Pstork1 Profile Picture
    66,816 Most Valuable Professional on at
    Re: Need help to set up the 2 trigger condition in my Cloud flow

    First, to get it to run on the 15th and 16th of the month you need a Recurrence Trigger that has a trigger condition that limits it to only running on those days.  Here's the trigger condition to add in the settings of the recurrence trigger set for every day.

    @Anonymous(equals(dayOfMonth(utcNow()),15),equals(dayOfMonth(utcNow()),16 ))

    The flow will now run on the 15th and 16th of the month.  If the flow runs check to see if the monthly folder already exists.  If it does do nothing.  If it doesn't check for the email and proceed normally.

     

    • If the flow runs on the 15th finds the email and creates the folder then when it runs on the 16th it will just skip everything.
    • If the flow runs on the 16th and finds the folder, then it already ran on the 15th and nothing happens.  If it doesn't find the folder then it tries to find the email and create the folder like it would have on the 15th.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Restore a deleted flow