GlideappVariablePoolQuestionSet

gunjan1
Kilo Contributor

Hello All,

Can anyone please explain the purpose of GlideappVariablePoolQuestionSet() and getFlatQuestions().

Thanks

Gunjan

1 REPLY 1

Robert Chrystie
ServiceNow Employee
ServiceNow Employee

Hi Gunjan,



Using these functions you can retrieve the variables, both their question and answer, that are associated to a requested item.   This is helpful in places like notifications where a generic notification is needed to show the variables for an item and not have to hard code the variables into the notification.  



Here are an article that should help:


GlideappVariablePoolQuestionSet is showing hidden fields in notification