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 : ohHB88jrUXZLwKZjkvAM2Z
Power Apps - Building Power Apps
Answered

Extend due date and change status after due date by button

Like (0) ShareShare
ReportReport
Posted on 23 Jun 2023 12:49:05 by 133

Hello, 

 

I am creating an app in which i Have a form with "due date " data card which is 30 days later than todays date. I want to create a button on another screen who let me extend this "due date" by next 30 days by click on it. I create funcion in this button:


DateAdd(ThisItem.'Duedate',30,TimeUnit.Days);

 

But it does not work.

 

How can I do this ?

 

Moreover I want to change the status column if the date is After "due date" to "outdated". Can yo help ?

I have the same question (0)
  • Verified answer
    developerAJ Profile Picture
    2,855 on 26 Jun 2023 at 14:43:53
    Re: Extend due date and change status after due date by button

    "Network error when using Patch funcion: Conflicts exist with changes on the server, please reload"

     

    This error usually comes up if there is mismatch in sharepoint and powerapp item.

    for example you have a item title:TitleA 

    when you loaded the app you have TitleA

    someone updated the item: TitleB

    and you tried updating the item:TitleC (its trying to convert TitleA to TitleC but it should convert from TitleB to TitleC)

     

    Ok, I found the problem is that column "Due date" is depend on another column : "Start date" the formula is:

    due date = start day +30  are you not storing the Duedate in sharepoint?

  • Karolina776 Profile Picture
    133 on 26 Jun 2023 at 11:38:05
    Re: Extend due date and change status after due date by button

    Ok, I found the problem is that column "Due date" is depend on another column : "Start date" the formula is:

    due date = start day +30 

     

    Karolina776_1-1687779183527.png

     

  • Karolina776 Profile Picture
    133 on 26 Jun 2023 at 11:15:09
    Re: Extend due date and change status after due date by button

    I use your funcion and I have an issue:

    "Network error when using Patch funcion: Conflicts exist with changes on the server, please reload". What I did wrong?

    Karolina776_0-1687778099044.png

     

  • developerAJ Profile Picture
    2,855 on 23 Jun 2023 at 14:30:30
    Re: Extend due date and change status after due date by button

    Status is choice

    Patch(ursharepointlist,ThisItem,{Duedate:DateAdd(ThisItem.'Duedate',30,TimeUnit.Days),Status:{Value:"outdated"}})

     

    Status is Text column

    Patch(ursharepointlist,ThisItem,{Duedate:DateAdd(ThisItem.'Duedate',30,TimeUnit.Days),Status:"outdated"})

     

    I Assume due date is datecolumn

     

    Please click Accept as solution and Thumbs Up. if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    You can connect with me on LinkedIn

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 688 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 499 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete