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 / Multiple timestamps pe...
Power Apps
Answered

Multiple timestamps per record

(0) ShareShare
ReportReport
Posted on by 48

Hi all.

 

My fire register / In-Out tracker is coming along nicely.  The next goal is to be able to track time in and out.

 

I can patch a time stamp to a record but what I'd like id to is every time the person scans a new timestamp is recorded -not overwriting the existing data.

 

ScancountStatusTimestamp
1inTS1
2outTS2
3inTS3
4outTS4

So, in terms of logic, I want:

If TS1=blank Update TS1, If TS1<>Blank, Update TS2 (unless TS2 is not blank)

 

OR

(There is a counter field, which tracks the number of scans)

If scancounter=0 then update TS1, if counter=1 update TS2 (etc)

 

Is this do-able via a patch command?

 

(I've had some excellent help from this forum so far, when i've finished I'll share the app. A week ago I knew nothing about PowerApps!)

 

Jay

 

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    I would put the scans in a separate entity/list. relate it to the parent record with a lookup field.

     

    So every time someone scans, patch a timestamp record.

    This will give you a nice 1:N timestamp history, and you can easily do a count of the timestamp records related to the parent record and can see number of scans in a date range, etc.

     

    This also gives you the option to archive scan records, and see who is doing what scans. A lot more detail than what you can get with just a counter field on the main record.

  • JayRussell Profile Picture
    48 on at

    Thanks, @jlindstrom 

     

    If I understand correctly, I'd have a second sharepoint list which just recorded Name (thats the scanned data) and the time of the record. So an individual would create multiple entries:

    NameTimestamp(Meaning)
    Fred9amEntry 1
    Bob9.05amEntry 1
    Fred12pmExit 1 (lunch)
    Fred12.30pmEntry 2 (lunch return)

    I could pull from this a count -which would determine in/out status. And using max/min type calculations determine Time in and out (start/end of day etc)

  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    that's it @JayRussell 

    This design is much more scalable, and also designs it in a way that could be moved to a relational database later if it grows beyond the capabilities of SharePoint lists.

     

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 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard