Qlik Community

Qlik Sense Data Connectivity

Discussion board where members can learn more about Qlik Sense Data Connectivity.

climberdavid
New Contributor II

Connecting to NPrinting API using Qlik Sense REST connector

Hi,

I´m currently trying to connect to the NPrinting API using the Qlik REST connector.

I managed to successfully authenticate and trigger a task using Postman, but when I´m trying to use the Qlik REST connector I´m getting an error.

The idea is to trigger an NPrinting task during a Qlik Sense reload.

My settings in Postman is:

Method: POST
URL: https://SERVERURL:4993/api/v1/tasks/07ea791d-3aa0-465e-b38b-fea0f2b026f2/executions

Headers: Content-Type: application/x-www-form-urlencoded


My settings in the rest connector:

Method: POST

URL: https://SERVERURL:4993/api/v1/tasks/07ea791d-3aa0-465e-b38b-fea0f2b026f2/executions

Auth detect response type: Yes

Use Windows authentication: Yes

I tried both with and whiteout Server certificate validation, but not 100% sure what certificate to use here. 

Query headers: Name: Content-Type, Value: application/x-www-form-urlencoded

Has anyone managed to do this? And if so, what settings did you use?

Thank you.

5 Replies
jfkinspari
Contributor III

Re: Connecting to NPrinting API using Qlik Sense REST connector

Hi David

I've been working on the same idea, and has with succes executed GET commends to the Nprining API using the Qlik rest connector.

I'm first getting a authentication cookie, which I use in the following calls using NTLM without certificates.

However, I've no success in executing POST commands, as they result in an 203.

Qlik support has tested the same configuration, and have concluded that the REST connector does not work with the Nprinting API., and suggest building a solution to start a Nprining in another way (by not using the Qlik REST connector)

shneior2
New Contributor II

Re: Connecting to NPrinting API using Qlik Sense REST connector

HI

I'm using qlik sense qrs to track on qlik sense tast status

when status done/completed  i'm excecut NPrinting task by using REST API

C# implementation

sri_c003
Contributor

Re: Connecting to NPrinting API using Qlik Sense REST connector

David, how did you get to access NPrinting via Postman. I am trying to do this, but unsuccessful thus far.

shneior2
New Contributor II

Re: Connecting to NPrinting API using Qlik Sense REST connector

Take a look print screen attached

first:  i enabled HTTP 

second:  you need to find your xfrfKey

third: recive "result id"  will allow you to send requriers   

b_knuever
Contributor III

Re: Connecting to NPrinting API using Qlik Sense REST connector

Hi,

I am trying to get some GET commands running with the NPrinting Api. I have no need for POST commands at this point. Can you tell me how to get this working? I can get the login connection working and get a Token. But I don't know how to get the commands working.(In Sense)

Community Browser