We have created APP in DOMO and we are using pfilters to load the dashboard as per filters passed like we are passing client id, date range. We had to create DDX Brick as we wanted some custom logic for one card so DOMO suggested to use DDX bricks. We have created a DDX Brick and added card in APP for this Brick.
We have used querying logic on dataset in that brick where we can pass filters, group by, order by etc to query on the dataset associated that brick. Now we want to pass the pfilter of APP to pass to this brick so that APP including this brick card will show data based on the pfilters.
domo.get(stationquery).then(function(data) {});
We tried below option but no luck
var filters = window.pfilters; //Giving undefined all the time
domo.get('/domo/environment').then(function(env) {
console.log('Environment:', env);
});// Giving 400 error
can you please suggest how can I read pfilters of the APP in DDX Brick?