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 / Triggering Flow when r...
Power Automate
Unanswered

Triggering Flow when record in dataverse not modified for x days

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

 

I am trying to send an email when a record in Dataverse hasn't been modified for 3 days and then an escalation email at 7 days.

 

I can understand how to do it should the data source have been Sharepoint "Get Items" but struggling to know which Action to use, and how, for Dataverse.

 

Any help would be greatly appreciated.

Categories:
I have the same question (0)
  • mjburley Profile Picture
    370 on at

    There's no trigger for nothing happened, so you could run a scheduled flow that runs every day, and it lists rows on the required table with a filter of modifiedon > 3 days and < 4 days which will produce a list of those last modified  3 days ago.

     

    Filter would be something like

    modifiedon gt var3DaysAgo and lt var4DaysAgo

     

    where the var4DaysAgo would be like:

    concat(formatDateTime(adddays(utcNow(),mul(variables('Days'),-4)), 'yyyy-MM-dd'),'T00:00:00Z').

     

    Hope that makes a modicum of sense !

  • Ashers82 Profile Picture
    12 on at

    This isn't working for me.  What do I put 

    concat(formatDateTime(adddays(utcNow(),mul(variables('Days'),-4)), 'yyyy-MM-dd'),'T00:00:00Z')

     in please?

    I either can't save or I try and use something like 

    modifiedon le @{addDays(utcNow(), -3)}

    which gives me the following error...

    ' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range.

  • mjburley Profile Picture
    370 on at

    Sorry, I just copied  some code I had and pasted it, not realising there was a variable (Days) in there. 

     Try this,

    mjburley_0-1695979564397.png

     

    where Compose 3 days is :

    concat(formatDateTime(adddays(utcNow(),mul(3,-1)), 'yyyy-MM-dd'),'T00:00:00Z')

     

    and compose 4 days is :

    concat(formatDateTime(adddays(utcNow(), mul(4, -1)), 'yyyy-MM-dd'), 'T00:00:00Z')

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard