Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why my variables are showing empty in the emails sent from the notification in servicenow?

FIKRI BENBRAHIM
Kilo Guru

Hello dears,

I don't know why my variables are showing empty in the emails sent from a notification i have created in servicenow?

The same happens with email templates and with email added in the notification.

To add the variables in the email body, i just click on variables and they add in the email body. 

I must be getting something wrong in here.

 

Best regards

FIKRI BENBRAHIM Mohamed Jawad

 

1 ACCEPTED SOLUTION

FIKRI BENBRAHIM
Kilo Guru
Hello, I have just found out my error. In the gs.getEventQueue i should have given it the glide record objet plus instead of giving it current. Like so: var inc = glideRecord('incident') ; //Add here the query you want to execute gs.EventQueue('name_of_the_event', inc, inc.field_label);

View solution in original post

2 REPLIES 2

Kalpesh13
Kilo Contributor

Can you please provide body content here with your variables name?

FIKRI BENBRAHIM
Kilo Guru
Hello, I have just found out my error. In the gs.getEventQueue i should have given it the glide record objet plus instead of giving it current. Like so: var inc = glideRecord('incident') ; //Add here the query you want to execute gs.EventQueue('name_of_the_event', inc, inc.field_label);