This topic contains 1 reply, has 0 voices, and was last updated by rushabhsheth 6 years, 11 months ago.
-
AuthorPosts
-
November 27, 2017 at 1:29 pm #18143
Duane_BakoI am trying to get a list of ‘calls’ associated with a Support Case record via a Workflow Action Script.
getSublists returns a list of sublist that includes ‘calls’. However, I can’t get to ‘calls’.
What am I missing?
Code snippet:
var rec = record.load({
type: record.Type.SUPPORT_CASE,
id: scriptObj.getParameter({name: ‘custscript3’}),
isDynamic: true
});
var mySublists = rec.getSublists();
log.debug({
title: ‘Sublists:’,
details: mySublists
});
var sublistFields = rec.getSublistFields({ // This is line #38
sublistId: ‘calls’
});
log.debug({
title: ‘Sublist Fields:’,
details: sublistFields
});
The log shows:
Sublists: [“recmachcustrecord_bako_case_no”,”messages”,”calls “,”usernotes”,”activities”,”mediaitem”,”tasks”,”ev ents”,”transactions”,”escalatehist”,”escalateto”,” systemnotes”,”activeworkflows”,”workflowhistory”]
JS_EXCEPTION
{“type”:”error.SuiteScriptError”,”name”:”UNEXPECTE D_ERROR”,”message”:null,”stack”:[“anonymous(N/recordService)”,”onAction(/SuiteScripts/Problem Resolution/Close CRT Calls.js:38)”],”cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:null,”u serEvent”:null,”stackTrace”:[“anonymous(N/recordService)”,”onAction(/SuiteScripts/Problem Resolution/Close CRT Calls.js:38)”],”notifyOff”:false},”id”:”e921885a-9392-43d5-8cc3-e053e758a3f1-2d323031372e31312e3237″,”notifyOff”:false}
This is a cached copy. Click here to see the original post. -
November 28, 2017 at 6:04 pm #18144
rushabhshethI’m having the same issue when I try to use it in an User Even Script. I get an empty result.
-
AuthorPosts
You must be logged in to reply to this topic.