how to create a record in one table whenever an RITM is created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-18-2022 05:09 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-18-2022 05:32 AM
Maybe I'm old fashion but I would do this in a workflow.
- Create a workflow that has at least a script activity to generate this new record.
- 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.