Get dataSets names

I want to apply selected datasets using that function

const applyDataSet = async(name) => {
   await batchPlay(
  [
     {
        "_obj": "apply",
        "_target": [
           {
              "_ref": "dataSetClass",
              "_name": name
           }
        ],
        "_isCommand": true,
        "_options": {
           "dialogOptions": "dontDisplay"
        }
     }
  ],{
     "synchronousExecution": false,
     "modalBehavior": "fail"
  });
}

but i need to get an array of datasets in my file.
I found descriptors
“dataSetClass”,
“dataSetName”,
“dataSetNumber”,
“dataSetNumberLeadingZeros”
and probably one of them can help but i don’t know how

1 Like

Maybe this class has no getters. @Barkin