- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 10:31 PM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 10:47 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 10:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 11:03 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2017 11:10 PM
I wont thank you