Cannot use metadata from GridMetaData page in UI-KIT

Please refer : Export Excel on Filtered Values in UI Grid - UI Kit | Support Center

Standard OOTB method like Page-Copy doesn’t work if we need to use the metadata in the GridMetaData_XXXXXXXX page.

The corresponding pxObjClass Pega-UI-Component-Grid-Filter is a concrete class without a key. Not sure if we can use Obj- methods to use the metadata

Please advise as to how can we use the information on this page using an activity

Use a Java step in the activity to read the GridMetaData page directly from the requestor clipboard, because this page is a runtime UI page and not a normal persistent clipboard page, so Page-Copy and Obj methods will not work on it. Get the page by its exact name, such as GridMetaData_, from the clipboard tools API, then read the pyColumns and filter values from that page. After that, copy only the needed values into your own temporary data page or parameter page. Work only with that copied page in the rest of the activity. This is the correct way to use UI-Kit grid metadata in backend processing.