Team, I am trying to set the inventorydetail on an...
# suitescript
a
Team, I am trying to set the inventorydetail on an Aseembly Build record on create. Anyone has done this? I am having issues both using User Event and Client scripts. Thanks.
b
most supported way is a client script deployed on inventory details
a
Thanks @battk can you please elaborate a bit more? I am trying to set the inventory details (a custom lot number) on assembly build creation. Any suggestion? Thanks!
when I try to get the inventorydetail subrecord on the assembly build pageInit client script, I get an error
also from a custom button
b
client script is essentially limited to read only access to sublist subrecords
so in general the answer is its unsupported
you can however deploy a client script to the inventory detail record
which is as close as suitescript can get you
thats typically limited in that you have to press buttons in the ui to get to that client script
if you are desperate, you can use javascript to automate pressing those buttons
or the programmatic equivalent of whatever those buttons do
a
but the subrecord is not on the sublist, right? I think it is on the body
b
you have no access to the sublist on the subrecord
though you should have been able to access the body level fields on the subrecord