var recordProducerId = "bc5baf4fdbb3e85000059ed3ca96191e"; // record producer sys_id
var request_body = {
variables: {
"first_name" : "Working",
"last_name" : "Code",
"email" : "helpdesk@workingcode.in"
}
};
var catalogItem = new sn_sc.CatItem(recordProducerId);
var variables = request_body.variables || {};
request_body.sysparm_id = recordProducerId;
request_body.sysparm_action = 'execute_producer';
if (!request_body.sysparm_item_guid)
request_body.sysparm_item_guid = gs.generateGUID('');
catalogItem.submitProducer(request_body);
How to Submit record producer using script ServiceNow
Working Code Asked question September 25, 2023
Sorry, you do not have permission to read comments.