How to access variable set value in business rule ??

Nawal Kishor Si
Tera Contributor

 Hi experts,

 i have created the record producer and after submit it. it shown in fetched table ticket... based on insert into the table i want to access the variable set value and triggerd the notification but after inset business rule ..im not able to access the variable set value...it showing 'undefined'.

 

please provide solution 

Thank you

 

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

can you share what script you are using in notification to print variable value?

notification is on which table? it's screenshots etc

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

var test= current.variables.standard_employee_questions.requested_for;
var test3=current.variables.standard_employee_questions.needed_by;

var email='rinable1290@umcs.in';
if(test=='Yes' || test3=='Yes'){
gs.eventQueue('event_ns_notification',current,email,'');
}

 

 

i have used current.variables.field_name as well but its return always 'undefined'

Hi,

you didn't provide complete details

notification is on which table? where are you writing this script

As an alternative you can query question_answer table with current record sys_id and then get details

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

u_cssc table.

Hi,

Can you share complete email script?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader