Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Need a flow to update status of a record in table on every day

(0) ShareShare
ReportReport
Posted on by 47

Hi All,

I need some idea/ flow steps for following scenario

 

1. I have a table in Data verse

2. Once in every day I need to update the record status(custom status) to "Cancelled"

3. Condition is, If that record reach 21 days from the date of creation

 

How to achieve this in flow

bit urgent

 

Regards,

Babu

  • ReinerKnudsen Profile Picture
    39 on at
    Re: Need a flow to update status of a record in table on every day

    Thanks for that! Exactly what I needed. I like your detailed description. That was very helpful.

  • Narendra Sunkara Profile Picture
    47 on at
    Re: Need a flow to update status of a record in table on every day

    Hi @CraigStewart ,

    Other quick question, I am trying to use fetch XML query to get the list of records which created 21 days back, how to write that in Fetch XML query. Please send me some screen shots 

     

    Regards,

    Babu

  • Narendra Sunkara Profile Picture
    47 on at
    Re: Need a flow to update status of a record in table on every day

    Hi @CraigStewart 

     

    Thanks for your reply

    I found issue with login in condition to check 21 days

    I have created date as 09/05/2022 and I tested my flow on 30/02/2022, still my condition is returning false.

    What might be the reason?

    An I don't have note field in my current table where I am updating status to "Cancelled"

    How to add Note 

     

    Regards,

    Babu

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on at
    Re: Need a flow to update status of a record in table on every day

    Hi

     

    Row ID is a unique identifier for the row you want to update, you should be able to see it in the list in power automate.

    Or you could go to the table itself and look at the columns, the data type will be listed like this

    CraigStewart_0-1653897111390.png

     

    For the note, if this is a column in the table you are looking to update, then the field should be available to amend on the update a row action.

     

    CraigStewart_1-1653897277739.png

     

    CraigStewart_2-1653897304680.png

     

     

     

  • Narendra Sunkara Profile Picture
    47 on at
    Re: Need a flow to update status of a record in table on every day

    Hi @CraigStewart 

    Thanks for your reply

    I started implementing these steps in my flow

    Quick question:  While updating the record in "Update a Row" step, how to get Row Id?

    I have small additional requirement :

    After I update a record status to "Cancelled" I need to create a "Note record" against this record with in "Timeline" tab

    saying that "Auto cancelled on day 21"

     

    Please help me with these.

     

    Regards,

    Babu

     

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on at
    Re: Need a flow to update status of a record in table on every day

    Hi Babu

     

    Should be an easy one.

     

    You'll have a recurring flow to run once a day, then List Rows from dataverse table,

     

    Use a condition to check if the date in creation is 21 or more 

    Then update Row

    CraigStewart_0-1653649278910.png

     

    Condition is

     

    formatDateTime(items('Apply_to_each')?['cr7ec_created'],'yyyy-MM-dd')
    is less than or equal to
    addDays(utcNow('yyyy-MM-dd'), -21, 'yyyy-MM-dd')
     
    Here's my table before the flow
    CraigStewart_1-1653649359401.png

    and after

     

    CraigStewart_2-1653649415946.png

     

     

    Hope that helps

     

    Craig

     

     

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow