Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

When a File is Created triggers too soon

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I would like create an auto email notification when a file is created and due date is updated in the SharePoint column. The email notification is with dynamic content to pick up due date from the SharePoint column.

 

The problem I have is the email notification is not able to pick up the due date as the 'When a file is created' is triggers too soon. 

 

Seeking your guide. Thanks in advance.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: When a File is Created triggers too soon

    @v-yamao-msft,

    Mabel,

    I get it now. Thanks it's working. Smiley Very Happy

     

    @v-yamao-msft @Pstork1,

    Thank you so much for your guidance. I'm lucky to have a great support from both of you. Smiley Happy

     

    Best Regards,

    Doris

     

  • v-yamao-msft Profile Picture
    on at
    Re: When a File is Created triggers too soon

    Hi @Anonymous ,

     

    Please make sure the dynamic content DueDate comes from action Get file properties, but not from the trigger.

    1.PNG

     

    Best regards,

    Mabel

     

  • Community Power Platform Member Profile Picture
    on at
    Re: When a File is Created triggers too soon

    @Pstork1 

     

    Print screen below is the delay and get file properties I have added. The you no action I can be added in the loop. Could you guide how I can do so and anything on the print screen below is not correct?

     

     

     

    Delay_LI.jpg

     

     

  • Pstork1 Profile Picture
    65,999 Most Valuable Professional on at
    Re: When a File is Created triggers too soon

    You are using the Due Date from the SharePoint action that you did at the beginning of the Flow (I don't think the one inside the loop will be available once the loop exits) You either need to put the email action inside the loop or use the variable that you are setting.

  • Community Power Platform Member Profile Picture
    on at
    Re: When a File is Created triggers too soon

    @v-yamao-msft 

     

    Yes. The 'send email' action is outside of the Do Until. Below are the print screens.

    The last print screen is an excerpt of the email has been sent. You can see the due date is missing. I have updated the due date within 1 minute after loaded the file to SharePoint.

    1. Step 1 & 2.png

     

    2. Step 3.png

     

    3. Step 4.png

     

    Email has been sent.png

  • v-yamao-msft Profile Picture
    on at
    Re: When a File is Created triggers too soon

    Hi @Anonymous ,

     

    It works perfectly on my side.

     

    Could you share an image on your current flow?

     

    Please make sure the send email action is added under (outside of the do until loop) the do until loop.

     

    Best regards,

    Mabel  

     

  • Community Power Platform Member Profile Picture
    on at
    Re: When a File is Created triggers too soon

    @v-yamao-msft,

     

    Thanks for your guide. You're right. It's exactly what I'm looking for.

     

    I have tried exactly the way you suggested, but the auto email notification is sent without due date.

    Is yours successful?

     

    Thanks in advance.

  • Community Power Platform Member Profile Picture
    on at
    Re: When a File is Created triggers too soon

    @Pstork1,

     

    I have tested with get file properties. The auto email notification is sent without the due date too.

    😞

  • v-yamao-msft Profile Picture
    on at
    Re: When a File is Created triggers too soon

    Hi @Anonymous ,

     

    Do you want to send out the email when a file is created and due date is updated?

     

    Please consider using Do-until loop, so that only when the due date column updated, an email will be sent out.

     

    I have set up the flow likes below for your reference.

     

    After the trigger when a file is created, initialize a String variable first.

     

    Then add a Do until loop, set the do until condition as variable Test is not qual to empty.

     

    Within the loop, add Delay with 1 minute, then Get file properties, select ID from the trigger.

     

    In the action Set variable, select dynamic content DueDate from Get file properties action.

     

    Note: Value used in the Do until condition should be from actions that we’ve added in Do until loop.

     

    Under the loop, add action to send an email.

     

    An image for your reference.

    1.PNG

     

    Best regards,

    Mabel

     

  • Pstork1 Profile Picture
    65,999 Most Valuable Professional on at
    Re: When a File is Created triggers too soon

    ARe you still using the properties form the trigger?  Those won't work because they aren't updated after the trigger fires.  That's why I said you needed to do another get file properties after the delay.  That set of properties should be the updated ones.  But you have to be careful which ones you are using in the dynamic content list.

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,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow