cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Save date when Status was changed

Hi everyone, how you doing? 

I am mading a Power App for Maintenance Orders and I need to save date and hour when the status changed to "in progress" I tryied a simple formula If(type="In progress";Now()) but when I change the status to "Closed" the start progress date in Excel DB is cleaned. I need to save both hours and dates (in different columns obviously) to know how mutch time the technician spend in the order. 

 

 

2 REPLIES 2
Highlighted
Super User III
Super User III

Hi @Shunoraga ,

You need two date/time fields - Start time and End Time. On The OnChange of your Status drop-down, put

Switch(
   Self.Selected.Value,
   "In Progress",
   Patch(
      YourListName,
      ThisItem,
      {YourStartDateTime:Now()},
   ),
   "Completed",
   Patch(
      YourListName,
      ThisItem,
      {YourEndDateTime:Now()},
   )
)

 

Please click Accept as solution 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.

Highlighted

Hi @Shunoraga ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution 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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,274)