Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Syndicate_Admin
Administrator
Administrator

When my application refreshes or restarts, my button entry not working in the same SharePoint list Row ID

Button (Time In )  - OnSelect Property 

UpdateContext({varTimerActive:true});UpdateContext({varTimerReset:false});

Set(varNewItem, Patch('Attendance Time Tracker',Defaults('Attendance Time Tracker'),{Title:User().FullName,'Start Time':Now(),Location:Location.Latitude & "," & Location.Longitude,Working:true}))

Button (Time Out) - OnSelect Property 

UpdateContext({varTimerActive: false});UpdateContext({varTimerReset:true});
Set(varNewItem, Patch('Attendance Time Tracker', LookUp('Attendance Time Tracker', varNewItem.ID=ID),{'End Time':Now(),'Time Spent':DateDiff(varNewItem.'Start Time',Now(),TimeUnit.Minutes),Working:false}))


Note:- It's working at the same time or before the app refresh. but after the app refresh it's not working.

any solution for this?

Thanks, Pankaj.

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors