Checkbox not appearing on notification

Joshua Comeau
Kilo Sage

using a mail script to call a variable which is not appearing:

anything wrong with this script:

JoshuaComeau_0-1703697237305.png

 

 

1 ACCEPTED SOLUTION

@Joshua Comeau : That's correct. As you are printing only the variable value its displays only value.

 

template.print('YOUR VARIABLE QUESTION: ' + current.variables.your_variable_name);

 

Using this statement it prints the question followed by the value of it. If you are looking for all variables to be printed on the notification  refer the below article where I answered similar question.

 

https://www.servicenow.com/community/guided-learning-itsm/reading-variable-name-from-service-catalog...

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

 

View solution in original post

6 REPLIES 6

I did this but now it is only saying true in the email

JoshuaComeau_1-1703697928394.png

 

@Joshua Comeau : That's correct. As you are printing only the variable value its displays only value.

 

template.print('YOUR VARIABLE QUESTION: ' + current.variables.your_variable_name);

 

Using this statement it prints the question followed by the value of it. If you are looking for all variables to be printed on the notification  refer the below article where I answered similar question.

 

https://www.servicenow.com/community/guided-learning-itsm/reading-variable-name-from-service-catalog...

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.