Hey all,
I have two CDS Entities:
Entity 1 is called 'Bins' and the primary field for that entity is 'Barcode_no'. So, each item in that list has a barcode number.
Entity 2 is called 'Shipment', it has a lookup field to 'Bins' where you can select multiple bins as being part of that shipment.
So at this point, you are likely thinking : 'OK, so in the PowerApp, when the user is entering a new Shipment this will show up as a dropdown, and the user could select the multiple bins that are part of that shipment'
But of course, it get's a bit more complicated!
We do not want the user to select from a dropdown, we want the user to use the barcode scanner to physically scan each bin that is part of that shipment and then the app will check to make sure those numbers exist in the bin list and selects them automatically in the back-end.
On the 'New Shipment' Screen, I created a collection that shows the barcode of the bins as they are scanned.
I'm unsure of the best way to go about having the app take that barcode data for each bin and patch to the multi-select lookup field. I need to either:
A) Use a form in the app (which I'd prefer, though I'm flexible), update the lookup field's 'default selected items' with multiple items from the collection as they are scanned
Or
B) Patch the collection to the multi-select lookup field
Would be grateful if someone could give me a hand with this.

Report
All responses (
Answers (