- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2022 11:08 PM
Hi All,
I have created the record producer and i selected the target table as "remediation_rule" and once I submitted the record procedure the record is getting created in the "remediation_rule" table. and i am trying to get the variable value using the below script but it's not working as expected
Variable will access only Incident change table like that ..? becase the same log working in those table
var gr = new GlideRecord('remediation_rule');
gr.addQuery('sys_id', 'ae4d693a2fdf011009d159ab2799b693');
gr.query();
if(gr.next()){
var name = gr.variables.test;
gs.info(name);
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 12:35 AM
Can you check if there is an entry in question_answer table once for the submitted record with required values.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2022 11:55 PM
Hi
If you want to set field to record producer variable you can directly do in record producer form in 'Script' section by writing simple code like below. Mark my answer as correct if this is what you are looking for.
current.name = producer.test;
Regards
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 12:13 AM
Hi,
I don't want to set any field. i just want have in the variable only and need to access using script
Thanks
Ramesh R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 12:17 AM
*** Script: undefined
*** Script: 1
*** Script: Please test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 12:22 AM
Hi
for the incident table, its working fine but I have created a record producer on a different table (Ex: remediation_rule)
I am trying to get the value in the above table but it's not working.
Thanks
Ramesh R