Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
I would need help in Creating a Filter in NPrinting using NPrinting API call from POSTMAN.
I'm partially successful in creating the Filter by using NPrinting API however the filter values are not being set.
Given below are the steps I followed.
Before creating the Request I got the correct App ID and Connection ID from NPrinting.
https://<our np server>:4993/api/v1/filters
Request Body:
I checked NPrinting and found the filter got created however no Fields added.
Can anyone please help me in this regard. Thanks in advance.
Apologies in advance in case I've missed any documents created on this issue already.
Thanks
My suggestion is to take Qlik Sense OnDemand NPrinitng Report extension and look how it is built. Since it already supports passing selections you will see there how it is done.
Now - the filter api you described above does not take part in on demand requests I believe....
Hi,
This is an example using Postman:
the result is:
The JSON content:
After further investigation I found the way. The issue was with how I created the JSON request string.
My JSON string was having unnecessary fields such as ApiFilterField and ApiFilterFieldValue. After correcting it, I can see the values being added to the Filter.
{
"appId": "698b1537-a034-48e5-bed0-49920f0bfeeb",
"enabled": true,
"name": "sample_TEST",
"description": null,
"Fields": [{ "connectionId": "08e58504-b265-47d3-8003-eca73195f007",
"name": "AppFieldName",
"overrideValues": "false",
"Values":[ {
"type": "text",
"value": "ApplicationFieldSampleValue"
}]
}]}
My next hurdle is to add this Filter to the onDemandRequest for Report generation.
If anyone has any reference or example it would be really helpful. Thanks.
My suggestion is to take Qlik Sense OnDemand NPrinitng Report extension and look how it is built. Since it already supports passing selections you will see there how it is done.
Now - the filter api you described above does not take part in on demand requests I believe....
just like I thought...
https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=34
and
https://help.qlik.com/en-US/nprinting/November2020/APIs/NP+API/index.html?page=93
Hi,
This is an example using Postman:
the result is:
The JSON content:
@Lech_Miszkiewicz @Ruggero_Piccoli
Thanks so much for your help and suggestions in this regard.
I also found how to create the JSON format request for generating Report along with Filter object in it.