Hey all, I am Working on Item receipt on edit mode...
# general
e
Hey all, I am Working on Item receipt on edit mode , I am trying to get Landed cost method by using Suitescript 2.1 and Api i am using in client script is var obj_LandedCostSubrecord = o_CurrentRec.getCurrentSublistSubrecord({ sublistId: 'item', fieldId: 'landedcost', }); so it throws me error "code: 'INVALID_RCRD_INITIALIZE', details: 'You have entered an invalid default value for this record initialize operation.' " I Want to get the record but i am not able to do this i check the Field on sublist having subrecord it returns true i check that using var hasSubrecord = o_CurrentRec.hasCurrentSublistSubrecord({ sublistId: 'item', fieldId: 'landedcost', }); It returns true but while getting subrecord it throws me error instead of landed cost record