GlideappVariablePoolQuestionSet getFlatQuestions is not returning all variables that have a value and are visible.

Janet Grace
Kilo Contributor

Good day,

I am using the form widget with sc_task as the table parameter to display the task information and catalog item variables.  The form widget uses the sp_variable_editor widget to display the variables which uses  GlideappVariablePoolQuestionSet.getFlatQuestions() to retrieve the variable data. All variables that have a value and are visible are not in the results of the getFlatQuestions.  I cannot find the script for it or anything but sparse documentation to investigate why.  

Please let me know where I can find the GlideappVariablePoolQuestionSet script or any detailed documentation or any suggestions for how to solve this issue.

Thank you very much in advance!

Janet Grace

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Janet,

below links should help you

https://jace.pro/post/2018-02-15-print-out-variables/

https://community.servicenow.com/community?id=community_question&sys_id=a4540369dbd8dbc01dcaf3231f96...

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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