mmoen
12/15/2023, 3:41 PMrecord.submitFields({type: record.Type.SALES_ORDER, id: 5153500, values: {job: 4682210}});
But the debugger returns an error:
{"type":"error.SuiteScriptError","name":"INVALID_KEY_OR_REF","message":"Invalid job reference key 4682210 for entity 4862208.","id":"","stack":["createError(N/error.js)","<anonymous>(adhoc$-1$debugger.user:7)","<anonymous>(adhoc$-1$debugger.user:5)"],"cause":{"type":"internal error","code":"INVALID_KEY_OR_REF","details":"Invalid job reference key 4682210 for entity 4862208.","userEvent":null,"stackTrace":["createError(N/error.js)","<anonymous>(adhoc$-1$debugger.user:7)","<anonymous>(adhoc$-1$debugger.user:5)"],"notifyOff":false},"notifyOff":false,"userFacing":false}; ID:
Just for the heck of it I've tried sending both IDs as both numbers and strings. Same result. Can't understand why the filtering would be different through script than through the UI.mmoen
12/15/2023, 3:42 PMMiriam Armada
12/15/2023, 3:48 PMmmoen
12/15/2023, 3:48 PMMiriam Armada
12/15/2023, 3:48 PMMiriam Armada
12/15/2023, 3:49 PMmmoen
12/15/2023, 3:49 PM