Hi everyone,
I'm currently working on a Power Apps project where I need to use a PDF417 barcode scanner to automatically parse and import data into a SharePoint list. Despite following various tutorials and documentation, I'm encountering persistent issues with the OnScan property.
Here’s what I’ve done so far:
Barcode Scanner Configuration:
- Inserted the Barcode Scanner control and set its BarcodeType property to PDF417.
- Named the control BarcodeScannerPDF417.
OnScan Property Code:
- I attempted to set the OnScan property to parse JSON data and collect it into the KanbanCards SharePoint list:
plaintext
Set(parsedData, JSON(First(BarcodeScannerPDF417.Barcodes).Value)); Collect( KanbanCards, { ActionNeeded: parsedData.ActionNeeded, ProductManufacturer: parsedData.ProductManufacturer, ManufacturerSKU: parsedData.ManufacturerSKU, CountNeeded: Value(parsedData.CountNeeded), // Ensure CountNeeded is a number UOM: parsedData.UOM, CountPerUOM: Value(parsedData.CountPerUOM), // Ensure CountPerUOM is a number Warehouse: parsedData.Warehouse, Sublocation: parsedData.Sublocation, EmployeeID: "", // To be set later if needed DeletionTimestamp: Blank() // Set as Blank initially } ); Notify("Data Imported Successfully", NotificationType.Success);
Issues Encountered:
- The OnScan property shows errors related to the use of the '.' operator on text values.
- The First(BarcodeScannerPDF417.Barcodes).Value might not be parsing as expected.
Objective: I want the barcode scanner to automatically parse the scanned data and add it to the KanbanCards list without needing an additional button click.
Request: Could anyone provide insights or a corrected approach to handle this scenario? Any advice on how to correctly configure the OnScan property or troubleshoot these issues would be greatly appreciated.
Background: I want to have a Kanban Card Digital Board, See screenshots below.
This is the printed card
Thank you in advance for your assistance!