Tips and Tricks : MRVS (Multi Row variable set) : Part 1
Hi All,
I thought of writing the common issues we faced while using MRVS (Multi Row variable set) and way we solved them.
Issue
It has been observed that MRVS is not displayed in any of the OOB widgets where variables are displayed be it ticket view/ approval widgets in London release
In this article, I will be covering how to add the MRVS data in tabular format in approval widget.
Attached is the cloned widget and screenshot of how it will look in the approval page for your reference , import the xml to use it in your instance.
Technical details
The variable set details are not fetched by $sp.getRecordVariablesArray, but all the RITM details will be fetched if we use $sp.getCatalogItem(filter) with the filter consisting of RITM details.
There was some tweaking done in server script , so that only MRVS data should be displayed in HTML via code " "
Hope this will help you and please let me know if you have any questions on the implementation.
Regards,
Swathi
https://www.servicenow.com/community/developer-articles/tips-and-tricks-mrvs-multi-row-variable-set-part-1/ta-p/2316442