We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to access Fulfillment group of the catalog item with the record producers

mcadieux
Kilo Contributor

Salut,

I have a incident record producer and I would like to know (from the script section) how can I read the Fulfillment group catalog item field and populate the Assignment group of the incident.

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

Are you referring the fulfilment group on item definition ?   If yes, the below script will work



var map = gs.action.getGlideURI().getMap();


if (map.get('sysparm_action') == 'execute_producer' && map.get('sysparm_id') ) {


  var getRecordProducerData = new GlideRecord('sc_cat_item_producer');


  if(getRecordProducerData.get(map.get('sysparm_id')))


  {


  current.assignment_group=getRecordProducerData.group;


  }


}



I haven't tried it on Service portal yet. I had written this for one of the threads and got the comment that it doesn't work for service portal.


View solution in original post

5 REPLIES 5

mrbenwhite
Tera Contributor

Hi,

It has been bugging me for ages where 'u_fulfillment_group_1' is set and in a round about way your article helped me find the list view value 'Fulfillment Group 1'.

I didn't realize that you could set the team to complete the work here and then refer to it in the workflow catalog task.

Nice one - thanks....