How to work with sublist with type "list" using su...
# suitescript
a
How to work with sublist with type "list" using suitescript 2.0 while creating a new record ? Any help will be appreciated autoPack=record.create({ type: 'customrecord_sps_package', isDynamic:true }); autoPack.setValue('custrecord_sps_package_box_type',packageDefinitionId); autoPack.setValue('custrecord_sps_package_qty',itemQty); autoPack.setValue('custrecord_sps_pack_asn',itemFullfilmentId); autoPack.setSublistValue({ sublistId: 'custpage_package_content', fieldId: 'include_in_package', value: true, line: 0 }); autoPack.save(); I am trying this but it throws Error
b
you are working with a sublist added by a script
make sure that script runs in whatever context you are running your code in
keep in mind that you will probably need a very good understanding of that script, so you may want to get in contact with the bundle owner
👍 1
a
understood sir . Thanks 👍