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 / Extend due date and ch...
Power Apps
Answered

Extend due date and change status after due date by button

(0) ShareShare
ReportReport
Posted on 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 ?

Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at

    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

  • Karolina776 Profile Picture
    133 on at

    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

     

  • Karolina776 Profile Picture
    133 on at

    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

     

  • Verified answer
    developerAJ Profile Picture
    4,763 on at

    "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?

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard