how to create a record in one table whenever an RITM is created

surya76
Tera Contributor

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 

find_real_file.png

how to automate this whenever an RITM is created it should automatticaly create a record in my case filing table?

 

 

Thanks

5 REPLIES 5

Sushma R1
Tera Expert

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();

Hit helpful or mark correct if it was šŸ™‚

 

how to achieve this via flow designer

can you see a create record action use that to create 

it's a single step šŸ™‚

Hi,

Create a Flow with trigger Service Catalog.

Action1, get catalog variables
Action2, create case filing record
Action3..N Create additional actions as needed