create incident from catalog item and not from record producer

gm6
Tera Contributor

create incident from catalog item and not from record producer using flow designer or anything that can be possible

 

Thanks,

GM

5 REPLIES 5

Mitsua
Tera Guru
Tera Guru

Hello @gm6 

 

I think it is not possible to create an incident through Catalog item. Using catalog item we can created REQ/RITM.

You can use Record Producers/Inbound actions to create an incident.

 

Mark my answer helpful if this help you.

Thanks!

Community Alums
Not applicable

Hi,

 

Catalog items are supposed to create requests and requested items but not incidents. May be in a workflow/flow you can write a script to create an incident once the ritm is created

Rana5
Tera Expert

Create a record producer, that's the best option here. Else you can do it via Run script activity of the workflow; however, record producer is the best option here.

 

Regards,

Rana

Musab Rasheed
Tera Sage
Tera Sage

Hello,

As others have suggested it is always best to create Record producer for which purpose as Service catalog will create Request based records rather than record producer records, however you can still create Incident using service catalog and all you have to do is to create 'Workflow' attach it to Service catalog and then in Workflow you can add 'Run script' activity and write simple code which will create incident record. Here is the sample code.

var er = new GlideRecord('incident');
er.initialize();
er.short_description = 'Test';
//if you want to set based on variables of service catalog then write like below
er.short_description = current.variables.sh_description;
er.description = 'Hello';
er.insert();
Please hit like and mark my response as correct if that helps
Regards,
Musab