Hello, I keep on getting a null value for the sublistid. It works fine on the item submit but returns null for the expense sublist. It is a postsourcing script. What am I doing incorrect? Here is the script: try {
var record = scriptContext.currentRecord;
var type = scriptContext.sublistId;
var name = scriptContext.fieldId;
log.debug('record '+record);
log.debug('sublist type is '+type);
log.debug('name of field is '+name);