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

Corey16
Tera Contributor

Maybe I'm old fashion but I would do this in a workflow. 

  1. Create a workflow that has at least a script activity to generate this new record. 
  2. Go to the catalog item and select this newly created workflow . 

To reference the variables you would use current.variables.YOURVARIABLENAME

So in the workflow you can have a script activity that looks like 

var gr = new GlideRecord('case_filing');
gr.initialize();
gr.mydummyvar = current.variables.mydummyvar;
gr.insert();

 

After this on each requested item if it were to ever error out you have a link to it from that ritm at the bottom left under related links called 'Show Workflow'. You can also control the state and other things based on the creation of this new record. Hope this helps.