- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 04:30 AM - edited 01-23-2024 04:32 AM
I have created a new custom table - 'u_consultant_tables' with fields as u_name and u_employee_type. Have also created a new form 'Hiring new form' with variables as u_name and u_employee_type and have connected using business rule -
and the code is -
but when the form is submitted its showing as empty as shown -
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 06:11 AM
Hi @gayatri38 Can you please confirm your BR is working on which table ?
Also to access variable value, you need to use current.variables.<variableName>
eg:
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('u_consultant_tables');
gr.initialize();
gr.u_name = current.variables.u_name;
gr.u_employee_type = current.variables.u_employee_type;
gr.insert();
})(current, previous);
I am assuming you are using catalog form not record producer ?
Thanks,
Harsh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 06:11 AM
Hi @gayatri38 Can you please confirm your BR is working on which table ?
Also to access variable value, you need to use current.variables.<variableName>
eg:
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('u_consultant_tables');
gr.initialize();
gr.u_name = current.variables.u_name;
gr.u_employee_type = current.variables.u_employee_type;
gr.insert();
})(current, previous);
I am assuming you are using catalog form not record producer ?
Thanks,
Harsh