Widget to get a record producer on Service Portal

sharank1
Giga Contributor

Hi Team,

How can I get a record producer on Service Portal? Like can anyone explain how to accomplish this?

Thanks,
Sharan

1 ACCEPTED SOLUTION

For the button, set the instance options: change the link type to catalog item, and then in the reference field select the record producer.


View solution in original post

15 REPLIES 15

dvp
Mega Sage
Mega Sage

OOB you will directly get all the record producer based on which category.



Here is the example of create incident record producer.


find_real_file.png




Can you tell us more about what are you trying to achieve?


can you please specify the widget you are using here ? and can some one help me with this 

https://community.servicenow.com/community?id=community_question&sys_id=b81e521edbc65bc04e1df4621f9619fb

Community Alums
Not applicable
Hi I have one quick question in this how to change the view details in this item. I want instead of view details ->Inciden if the item is RP. If item is sc_cat_item instead of view details ->Request For this enhancement we change the widget Could you how to make the widget please suggest me

ChrisBurks
Mega Sage

Hi Sharan,



dvp has a point about providing more information but on a basic level one way to do this is filter on the classname of the catalog item with a GlideRecord.


Example:


Widget: Server Script



var eq = 'sys_class_name=sc_cat_item_producer^active=true';


var sc_item_producer = new GlideRecord('sc_cat_item');


sc_item_producer.addQuery(eq);


while(sc_item_producer.next()){


        // write your script to capture field values here


       


}