add/edit inventory by scanning barcode

I am trying to follow this thread  in order to add/edit items by scanning their barcodes. However when scanning, the app returns "'Key field 'Unique Key' is required', what could be the issue?"

I'm using the Inventory Management template. I'm a total newb to appsheets but I've been struggling with this for many hours now. Please help!

Action formula:

IF (ISNOTBLANK(LOOKUP([_THISROW].[Item ID], "Items", "Item ID", "Unique Key")),

LINKTOROW(LOOKUP([_THISROW].[Item ID], "Items", "Item ID", "Unique Key"), "Items_Form"),

LINKTOFORM("Items_Form", "Item ID", [_THISROW].[Item ID])
)

More details:

Screenshot 2023-07-26 at 15.50.20.pngScreenshot 2023-07-26 at 15.51.47.pngScreenshot 2023-07-26 at 15.52.29.pngScreenshot 2023-07-26 at 15.55.12.pngScreenshot 2023-07-26 at 15.55.53.png

Screenshot 2023-07-26 at 15.59.54.pngScreenshot 2023-07-26 at 16.01.39.png

0 3 115
3 REPLIES 3

In the "Unique Key" column's Initial value field, put this: UNIQUEID()

Screenshot 2023-07-26 at 16.45.05.pngSorry, forgot to add that screenshot, I have already done this.

Did you try changing the the Field Type of the Unique Key to 'Text' instead of the current field type 'number'?

Top Labels in this Space