suitescript 1.0 (i know), creating a transfer orde...
# suitescript
a
suitescript 1.0 (i know), creating a transfer order, adding a line, and saving it. I need to set status to Pending Fulfillment instead of leaving it as Pending Approval. this is a workflow action script. I can't get nlapiSubmitField to do anything, any tips? this is what i tried: var kyApproved = nlapiSubmitField('transferorder',kentuckyId,'status','TrnfrOrd:B');
b
set
orderstatus
to
'B'
a
that did not work. still pending approval. but i didn't realize that is how you indicate status, just with the letter - thanks!
Copy code
var kentuckyId = nlapiSubmitRecord(kentuckyToRecord, true, true);
	var kyRecord = nlapiLoadRecord('transferorder', kentuckyId);
	var kentuckyToNbr = kyRecord.getFieldValue('tranid');
	var kyApproved = nlapiSubmitField('transferorder',kentuckyId,'status','B');
also - it does not recognize 'orderstatus' as a valid field.
b
dont know what to tell you.
Copy code
nlapiSubmitField("transferorder", "613", "orderstatus", "B");
works for me and i don't know what would make it so that you get an error about invalid fields when trying to use it maybe permission related