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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Automatic patch/update...
Power Apps
Answered

Automatic patch/updateif based on date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a power app in which I need to do an automatic patch based on the date. Is it possible?

The data source is SharePoint. 

 

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    What is the nature of the patch. You can consider a Power Automate if it has to occur based on occurrence of a date.

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @eka24 

     

    This is the data below:

     

    CustomerUser IDClient GroupingCountryStatusDate Ready
    Gotham Trading100500SpainIn Progress27/05/2020
    Gotham Trading104500SpainIn Progress27/05/2020
    Gotham Trading105500Spain  
    Midas Gold109600CanadaIn Progress06/06/2020
    Brutus Fruit112800FranceApplication15/09/2020

     

    For all the same "Client Grouping", If the date condition is met i.e. today() = "Date Ready" update all the "Status" to 'Finalise' . On the Power App I need to prevent updating of the records after said date so I have a condition on the Visible of the button, which is used to update the Status of the client grouping, to the date condition. However, I need to update the "Status" column in the data source.

     

     

     

  • KroonOfficeSol Profile Picture
    587 on at

    First, you could better use Power Automate to do this kind of thing.

     

    When you really want to do this in PowerApps you could have a ForAll() formula on App.Start doing the update. Would work something like this:

    ForAll(Filter(DataSource, "Date Ready" <= today()), Patch())

     

    Hope this helps,

     

    Paul

     

  • eka24 Profile Picture
    20,923 on at

    If you want to use Powerapps instead of Power Automate then put you Datasource on a Gallery by filtering as:

    Filter(Datasource, ReadyDate=Today())

     

    With this, only Data with ready today will show.All others will be invisible.

     

    You can then Patch using a Button:

    ForAll(Gallery1.AllItems, Patch(Datasource,
    {Status: "Finalize"}))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @KroonOfficeSol 

     

    The issue here is that the app might not be opened again after the "Date Ready", in which case the "Status" would not be updated to finalised.

  • eka24 Profile Picture
    20,923 on at

    As I said earlier, the best approach might be Power Automate. With that whether App is closed or open,it will still work.

    Post it on the Power Automate section of the platform.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The end-user might not open the app on said date. I'm essentially needing to lock the client grouping and update the datasource as the datasource feeds a production system to place an order. However, I need to lock the update of the client grouping and update all records in that client grouping to finalised.

     

    The first time the user uses the app the user could have finalised the requirement for all those records and choose a future date(Date Ready) for the requirement to be sent to the source system. However, during the window period to the "Date Ready" a new record could have been added to the client grouping. If the end-user did not return to the app in the window period they would not know there's a new record. Instead I want to default all statuses to finalised based on date ready.

  • KroonOfficeSol Profile Picture
    587 on at

    So, my comment on using Power Automate here makes sense then ;-). Power Automate you can schedule to run every night and finalize all records with dates on and before current.

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay will look at a power automate option. Thanks @eka24 and @KroonOfficeSol 

  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    @Anonymous ,

    Please consider accepting one or more solutions to close the item and make it easier for others to find.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard