- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:13 AM
How to trigger sc_task and ritm for a record producer with incident table
based on the requirement I need to trigger sc_task or incident record.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:54 AM
Hi,
You can try something like this in your record producer script :
if(producer.select_option=='1'){
current.short_desc='test12';
}else if(producer.select_option=='2')
{
current.setAbortAction(true);
var gr=new GlideRecord('sc_task');
gr.initialize();
gr.short_desc='test';
gr.insert();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:18 AM
Hi there!
Record Producer creates record in the table which was selected while creating Record Producer.
Can you explain what exactly are the requirements?
Regards,
Palak

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:25 AM
Hello,
RP doesn't create RITM or SCTASK it creates task based records like INC etc so if you want to create RITM or SCTASK please write BR or control this with Workflow or Flow designer.
Mark my answer as correct if that helps
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 07:31 AM
Hi,
Your requirements seems to be using record producer instead of catalog item
Why not have catalog item?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 08:03 AM
Would this be using a pre-existing Catalog Item to generate the REC/RITM/SCTASK?
Thinking that you could add a script query to the record Producer that if "option b" is selected that you redirect to the Catalog Item.