Hello Everyone, im looking for some help.
I'm trying to build a simple scanner app in power apps that captures the barcode value of a pallet, and then captures multiple barcodes of the contents of that pallet.These data captures should them be stored into a sharepoint online list.
Since i'm a complete newbie to powerapps , i'm having some difficulties, especially storing the records in sharepoint.
I have two barcode reader functions
GetpalletScan==> single barcode capture
ClearCollect(GetPalletScan,{PalletBarcode: First(BarcodeReader1.Barcodes).Value})
And
GetPartScan==> multiple barcode capture
ClearCollect(GetPartScan,{PartsBarcodes: BarcodeReader2.Barcodes.Value})
this part works ok, and i can see the values being captured in textlabels\galery, but them i have a SUBMIT button that tries a Forall and patch to insert all records and it keeps failing or throwing errors:
onselect:
ForAll(
GetPartScan,
Patch(
'Pallet Tracker',
Defaults('Pallet Tracker'),
{
PalletNumber:First(GetPalletScan).PalletBarcode,
PalletContent:PartsBarcodes
}
)
)
;
Clear(GetPalletScan);
Clear(GetPartScan)
And this keeps throwing errors like :
Issue
The type of this argument 'PalletContent' does not match the expected type 'Text'. Found type 'Table'.
And i cant figure out what i'm doing wrong.
Any help would be much appreciated.