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

Device Loaning

Hi There,
I've started making a PowerApp so that staff can check out Laptops, iPads, etc. By scanning a QR code on the devices.

I want to be able to see who checked the device out and when.. Is there anything that anyone can direct me to? Any help is more than welcome 🙂 

Thanks 
LS

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @LS01 :

First of all, you need a data table that all users can access to save the scan log. I use SharePoint List(ScanLog).

 

1.JPG

Secondly,set the BarcodeScanner's OnScan property to

Patch(ScanLog,Defaults(ScanLog),{Title:User().FullName,ScanTime:Now(),BarCode:BarcodeScanner1.Value})

Every time a user scans successfully, the user name, time, and barcode will be saved in the SP list'ScanLog'.

Finally,If you want to view these data in the app, you can add a data table control and set it's Items property to

ScanLog

You can also view related data directly in SharePoint:

2.JPG

Best Regards,

Bof

 

View solution in original post

3 REPLIES 3
v-bofeng-msft
Community Support
Community Support

Hi @LS01 :

First of all, you need a data table that all users can access to save the scan log. I use SharePoint List(ScanLog).

 

1.JPG

Secondly,set the BarcodeScanner's OnScan property to

Patch(ScanLog,Defaults(ScanLog),{Title:User().FullName,ScanTime:Now(),BarCode:BarcodeScanner1.Value})

Every time a user scans successfully, the user name, time, and barcode will be saved in the SP list'ScanLog'.

Finally,If you want to view these data in the app, you can add a data table control and set it's Items property to

ScanLog

You can also view related data directly in SharePoint:

2.JPG

Best Regards,

Bof

 

Thank you Bof, Will look in to this and give it a shot !

 

Thanks Again.


LS

Hi  @LS01 :
Has the problem been solved?
Is there anything else I can help?
If my post helps, then please consider Accept it as the solution to help others.Thanks
Best Regards,
Bof

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,853)