'get (Multiple Items) Filter Criteria in a Pivot Table using Excel Api javascript

I am trying to get Multiple Items from filter criteria. I have tried through filterHierarchies and also using pivotTable.layout.getFilterAxisRange() but its only return "Multiple Items" as text instead of return the list of selected Items



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source