How to use variables of record producers for the notification.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 08:02 PM
Hi All,
I have a requirement where I need to use variables of record producer for notification but there is no direct reference for the record producer variables only I can see the variables in form but on the notification table I am not getting those reference fields. So is there anyway I can use those fields and map in notifications please do share if anyone has pointers on this.
Thanks in advance
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 08:30 PM
Hi @Kruthik,
Record producer variable values are stored in 'question_asnwer' table.
You can write mail script to fetch variable values as showed in below script:
var queAns=new GlideRecord('question_answer');
queAns.addQuery('table_sys_id', current.sys_id);
queAns.query();
while(gr.next())
{
gs.info(queAns.question.getDisplayValue()+ ": "+queAns.value.getDisplayValue()+"\n");
}
Please mark the answer correct/helpful based on Impact.
Regards, Shekhar
Regards, Shekhar