Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team ,
I am trying to apply a filter in the below json sql query and it is throwing me an error. Could some one help me.
I am passing app id to restrict the app objects to fetch from only one app.
Error message:
Hey - Good question. I never had to apply a filter via WITH CONNECTION but seems like a valid use case.
Upon doing some research on the community, here's what worked for me:
WITH CONNECTION (QUERY "filter" "app.id eq {appId}");
Highlighted in bold are the key changes:
One is to use "eq" instead of "=" (thanks to this article https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/td-p/1637192)
The other one is to call the app id as a nested attribute of JSON (thanks to this article https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/td-p/1637192)
Hope it helps!
Hey - Good question. I never had to apply a filter via WITH CONNECTION but seems like a valid use case.
Upon doing some research on the community, here's what worked for me:
WITH CONNECTION (QUERY "filter" "app.id eq {appId}");
Highlighted in bold are the key changes:
One is to use "eq" instead of "=" (thanks to this article https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/td-p/1637192)
The other one is to call the app id as a nested attribute of JSON (thanks to this article https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-to-cut-a-result/td-p/1637192)
Hope it helps!