how to copy the fied values from RITM and create a new record automatticaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2022 05:32 AM
whenever an RITM is created i need to create a record in my custom table ("CASE FILING ");
how to achieve this using Business rule.
Here RITM is getting created with 4 variables , with the values of these variables i must able to create a record in case filing table . how to achieve this
how to automate this whenever an RITM is created it should automatticaly create a record in my case filing table?
Thanks
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2022 06:18 AM
Hello Corey,
Yes but then if the requirement is for ll kind of RITM then we need to modify all the existing workflows which is very time consuming.
If it's a fresh Instance then yes you create a separate workflow itself or action in flow designer and call it very time you create new but the approach according to me is not suitable for existing instance if the requirement is for all kind of RITM.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2022 06:08 AM
Write an async insert BR or flow designer also can be used, to initialize the record insertion
Async BR on sc_req_item table with exact condition for your catalog item wont affect the performance as it runs on background in system context
var gr = new GlideRecord('case_filing');
gr.initialize();
gr.approver = this.requested_for.manager;
gr.state = 'Requested';
gr.source_table_new = this.sys_id;
gr.source_table = reqtab.sys_id;
gr.insert();
Flow designer:
Create a Flow with trigger Service Catalog.
Action1, get catalog variables
Action2, create case filing record
Action3..N Create additional actions as needed
Hit helpful or mark correct if it was 🙂