Is it possible to ask for help finishing a script trigger.
I have two tables: 1) Product Options 2) Barcode Pool
Keys in each:
In basic terms - I am trying to synchronise the two!
A barcode cannot be assigned to two product options, and because a product option cannot have two barcodes.
SO, when I assign a barcode in product options, I want to set the option ID in the barcode pool. This is because a calculation relies on it to calculate an availability status.
My script is intended to: (set to OnObjectSave)
1) Check if barcode ID value is set or empty
2) If empty, exit script
3) If set - set product option ID variable, set barcode ID variable, go to barcode pool and set the ProductOptionID in the record that matches the barcode ID.
The script I currently have is:
Can someone help me finish this script?