The CreatorCon Call for Content is officially open! Get started here.

How to map existing Service Catalog to Incident table ?

shaik_irfan
Tera Guru

Hello Everyone,

I have a requirement where i already created a Service Catalog now my requirement got changed to "whenever user enters the data into Service Catalog data should automatically get inserted into incident table and a   record must be created "

I know we can do this using Record Producer but how to achieve using Service Catalog ???

Thanks in advance!

1 ACCEPTED SOLUTION

The purpose of service catalog items is to create requested items and catalog tasks for fulfillment. You cannot directly map it to incident table like a record producer. It is possible to create incident from the requested item workflow but I will not recommend this as it is not the right approach for creating incidents from the catalog.



Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


View solution in original post

7 REPLIES 7

Thanks Ali,



Let me create a new Record Producer and will map it to Incident table.



But still just for understanding how can we create via req item workflow ? can you please give me some info


In your workflow, Create a Run script activity and add this script in it



var inc = new GlideRecord('incident');


inc.initialize();


inc.short_description = current.variables.short_description; //These are variables in your catalog item and is mapped to incident fields


inc.caller = current.variables.requester;


inc.cmdb_ci = current.variables.ci;


inc.insert();



This is just for your reference, don't implement



Thank You


Please Hit Like, Helpful or Correct depending on the impact of response


I wont thank you