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 / Can I auto-update a fi...
Power Automate
Answered

Can I auto-update a field in SharePoint depending on the date calculation in the same share point? Would I need a power automate flow for the same?

(0) ShareShare
ReportReport
Posted on by

I have a share point which includes fields - "Status" and "Expiry Date".

I would want to update the value of the "Status" column from "Settled" to "Open" based on the calculation done on "Expiry Date".

Question1 : Is the auto-update possible on "Status" column? If yes, how?

Question2 :  The calculation to be done on "Expiry Date" is (Today's date + 6months < Expiry Date). How can I add this calculation? Do I have to use a power automate flow to accomplish this? Or can I add the calculation in Share Point?

 

Thanks in advance,

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    Calculated columns in SharePoint are only updated when the list item is updated.  So, you could do the calculation in SharePoint but it would not be accurate unless the list item has been updated.

    Do you want a Flow that runs daily and does your updates?  If so, see my example below.  If you use this example, please note that you'll need to go to the settings for the Get items action, set pagination to on and set the threshold to a number up to 5000 (higher if you have a premium license).  Otherwise, Get items will only return 100 items.  In the Update item action, you can set the status to the value you want.

    image.png

     

  • Community Power Platform Member Profile Picture
    on at

    Yes @ScottShearer . I would want to run the flow daily and update the "Status" column. Can this be done using power automate?

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    See my reply above.

  • Community Power Platform Member Profile Picture
    on at

    Thanks @ScottShearer , the solution worked liked magic!!

  • Community Power Platform Member Profile Picture
    on at

    Hi @ScottShearer , I used the logic having the adddays() as mentioned above. But somehow power automate is not following the mentioned condition. (I might have been committing a trivial mistake, probably).

     

    Below is the data that I have added. I would want the records 1 and 2 to be updated and not records 3 and 4. 

    GeethaSandra_0-1659385112007.png

     

    But when I try to execute the below condition - 

    GeethaSandra_1-1659385234740.png

     

     

    records 1,2 and 4 are being updated.

    GeethaSandra_2-1659385315856.png

    Could you please let me know how to correct it?

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    In your date format expression, try using the date format that I specified (yyyy-MM-dd) and see if that works for you.

    The format that I showed is how SharePoint stores all dates internally regardless of how they display in SharePoint.  The format on both sides of the condition must match.

     

  • Community Power Platform Member Profile Picture
    on at

    Thanks @ScottShearer . I didn't know about that. Thanks for the info and helping me.

  • iamoatsie Profile Picture
    5 on at

    Hi Scott, 

     

    I am trying to use your answer but am hitting a snag and am an absolute novice with SharePoint.

     

    I have a field called "Days Open" which uses the following formula to populate the number of days from when the record is opened, to today if the status is not closed:  =IF(Status<>"Closed",DATEDIF([Received Date],TODAY(),"d")+1) and this works fine but of course will only update when the record is changed.

     

    I want the "Days Open" to update, say at 7:00am every day automatically...

     

    Any assistance would be greatly appreciated.

     

    Kind regards.

  • axray Profile Picture
    244 on at

    Did you ever figure this out? I have the same issue...

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard