web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

send email if column has not been changed for X days

(0) ShareShare
ReportReport
Posted on by 49

Hello to all,

 

Can you help me writting notifications flow?

First of all how to create a notification when a cloumn is not changes for certain period of time(this is my biggest problem):

I have column status:

1. Status is changed to Ready. Since then, after 5 days if status is not changed send an email

2. When Status is changed to Ready and if Column 'Invoice number' is empty. Since then, after 2 days send notification email. After that send notification every 1 day until column Invoice number will be filled

 

I have the same question (0)
  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at
    Re: send email if column has not been changed for X days

    Hi @lukaszp89 

     

    Could you tell me if the column you mentioned is SharePoint column?

     

    I'm not quite certain if I understand your needs, I want to check something with you:

    â‘  If Status is changed to Ready and still remains as Ready for 5 days, send an email.

     

    â‘¡ If Status is changed to Ready and if column 'invoice number' is empty, send email as you request (after 2 days, every 1 day). 

    ____________________________________________________________________________________________________

    If I'm not misunderstanding your needs, then the flow you need is generally as below:

     

    First, choose the 'When an item is created or modified' trigger.

     

    Then, add the first 'condition' action: value in 'Status' column is equal to Ready.

    If yes,add the second 'condition' action: the column 'invoice number' is empty.

    If yes, delay 2 days and get the item again, check if the Status is equal to Ready.

    If yes, check if the column 'invoice number' is empty.

    If yes, send an email notification and add a 'do until' action.

    If no, do nothing.

    If no, do nothing.

    If no, delay 5 days and get the item again, check if the Status is equal to Ready.

    If yes, send an email notification.

    If no, do nothing.

    If no, do nothing.

     

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • lukaszp89 Profile Picture
    49 on at
    Re: send email if column has not been changed for X days

    Yes, this is perfect. Your answer is very clear. I am able to recreate almost all flow but can you advise me how to make this:

    If yes, delay 2 days and get the item again, check if the Status is equal to Ready.

    What should I choose and write?

     

  • lukaszp89 Profile Picture
    49 on at
    Re: send email if column has not been changed for X days

    I am trying with this flow. Generally would like to build simple flow:

    Check if status of order is on warehouse(Na magazynie)

       delay for 5 days

       send an email with notification

    repeat until status of order is changed to send(Wyslane)

    end flow

     

    powerapps.JPG

    I would appriciate your help with my flow

  • Verified answer
    v-yiwenxie-msft Profile Picture
    Microsoft Employee on at
    Re: send email if column has not been changed for X days

    Hi @lukaszp89 

     

    First, if you want the flow to recognize the change for a specific column, you need to go to SharePoint list site, list settings> versioning settings> enable ‘create a version each time’.

     

    If you just use the trigger ‘When an item is created or modified’ and no other limits, then flow will send you an email every time there is a change for the row with a static ‘Ready’ for the column ‘Status’.

     

    1.15-5.PNG

     

    1.15-6.png

     

    And then, you need to add the following pictures steps: (for more information about the steps, go to the link:Check for a Change in a SharePoint List Column Val... - Power Platform Community (microsoft.com))

     

    1.15-1.PNG

     

    1.15-2.PNG

     

    1.15-3.PNG

     

    1.15-4.PNG

     

    The schema in ‘Parse JSON’ above should be changed a little as below:

    "Status": {"type": ["string","null"]}

     

    The functions used above (which cannot be chosen from dynamic content):

    body('Parse_JSON')?['d']?['results'][1]['Status']

     

    Next, there comes to the conditions to send an email as you request.

     

    • add the third condition (Status is equal to Ready) as below:

    If yes, add the fourth condition to check if the invoice number is empty.

    If no, do nothing.

    1.15-7.PNG

     

    • for the fourth condition (if the invoice number is empty):

    If yes, delay 2 days and add the fifth condition to check if Status is equal to Ready.

    If yes, add the sixth condition to check if the invoice number is empty.

    If yes, send an email and add ‘do until action’ to send email every 1 day until

      invoice number is filled.

    If no, delay 5 days and add the eighth condition to check if Status is equal to Ready.

    If yes, send an email.

    If no, do nothing.

    If no, do nothing.

    If no, delay 5 days and add the seventh condition to check if Status is equal to Ready.

    If yes, send an email.

    If no, do noting.

    1.15-8.PNG

     

    1.15-9.PNG

     

    1.15-10.PNG

     

    1.15-11.PNG1.15-12.PNG

     

    1.15-13.PNG1.15-14.PNG

     

    1.15-15.PNG1.15-16.PNG

     

    The functions used above (which cannot be chosen as dynamic content):

    empty(triggerOutputs()?['body/invoicenumber'])
    
    empty(outputs('Get_item')?['body/invoicenumber'])
    
    empty(outputs('Get_item_4')?['body/invoicenumber'])
    
    div(sub(ticks(utcNow()),ticks(triggerOutputs()?['body/Created'])),86400000000000)

     

    For the data and time functions (ticks; utcNow): Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

    For the empty function: Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

    For the math functions (div; sub): Reference guide for functions in expressions - Azure Logic Apps | Microsoft Docs

     

    Be careful when you choose the dynamic content ‘Status’ because they’re from different ‘Get_item’ or triggeroutputs.

     

    The whole flow is as below:

    1.15-17.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • lukaszp89 Profile Picture
    49 on at
    Re: send email if column has not been changed for X days

    @v-yiwenxie-msft Thank you for reply. I am big fan of your posts. They are very educative.

    Regarding my flow and your solution. What should I write into Parse JSON? For now I do not understand what is going at the beggining of your flow but I am learning.

     

  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at
    Re: send email if column has not been changed for X days

    Hi @lukaszp89 

     

    The schema in Parse JSON is copied from the first run of your flow, which means when you add the 'Send and HTTP request to SharePoint' action, save and run the flow. 

    And click on body of outputs of the 'Send and HTTP request to SharePoint' action, select everything and copy it to your clipboard.

     

    But remember, 

    the schema in Parse JSON above should be changed a little as below:

    "Status": {"type": ["string","null"]}

     

    For more info about the steps of checking specific column changes, go to the link: 

    Check for a Change in a SharePoint List Column Val... - Power Platform Community (microsoft.com)

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • lukaszp89 Profile Picture
    49 on at
    Re: send email if column has not been changed for X days

    I have problem with Condition 2.

    First of all I have copied JSON as you adviced me.  My JSON has almost 700lines I have changed "Status": {"type": ["string","null"]}.

    When it comes to COndition 2 it is failed

     

    false.JPG

     

    Initialize variable 2 Value Wyslane=Ready so I think it is correct. This is the status for which I have changed but anyway it gives me false result

  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at
    Re: send email if column has not been changed for X days

    Hi @lukaszp89 

     

    You only need to change one line in the schema of 'Parse JSON':

     

    Strongly recommend you to download a software named 'Notepad++'. You can edit the schema in notepad. It's much more easier to edit simple code and see the structure more clearly with notepad.

     

    You can click 'ctrl+F' to find the word 'Status' in notepad++.

     

    The one line you should change is under the third 'properties':

    1.25-16.PNG

     

    1.25-17.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    on at
    Re: send email if column has not been changed for X days

    I have an easier way, create a calculate column call it "5daysopen"

    =IF(Created+5<TODAY(),
    IF(AND([Status]="Open"),"Yes"
    )

    then add your workflow to see if "5daysopen" send notification

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 535 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 348 Moderator

#3
developerAJ Profile Picture

developerAJ 262

Last 30 days Overall leaderboard