Could someone tell me how to create WO Issue from ...
# suitescript
b
Could someone tell me how to create WO Issue from Work Order please? I tried to use record.transform() but the issue is creating inventory detail for components. Any example could would be appreciated
e
I'm not sure what the expected behavior is, but Work Order -> Work Order Issue is supported with record.transform()
b
did you actually set the inventory details or did you need to learn how to work with subrecords
b
yes need to learn work with subrecords
need to set the inventory detail
b
go through the documentation on how to script subrecords
i heavily recommend learning how to create the inventory details you want in the ui first, then retrieving the inventory detail in code first
so that you can see the ids of the fields you set
then work on setting the fields in your code
b
Select Item, BIN, set Lot Number and Quantity will be enough, right? @battk
Thank you in advance, Have a great weekend
b
depends on how good you are at getting the ids from the inventory detail
you have about a 50% chance of getting the wrong id if you just copy a random example