Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
J_Dbwsk
Contributor II
Contributor II

nPrinting API - create data connection using QlikNPrinting-CLI

Hello,

I am having problems with nPrinting API using QlikNPrinting-CLI.  Maybe somebody had a similar problem and could guide me: I can connect to nPrinting engine, create new user or create new app, but when creating new connection I always receive error - Response: Bad Request. The code I try to run is bare minimum for what is required  to create new connection according to API documentation:

$DataConnecton = @{
name = "NewTestAPIConnection";
appId = "db69eadd-291b-4ca2-ae40-cf91c54923dc";
notificationsEnabled = $true;
}
$DataJSON = $DataConnecton

Invoke-NPRequest -method Post -Path "connections" -Data $DataJSON

Bonus question: how to add document path to a specific QV app or id and proxy for QS app in this code?

I am running Qlik NPrinting May 2022 SR2, Version: 22.15.8.0
QlikNPrinting-CLI - https://github.com/QlikProfessionalServices/QlikNPrinting-CLI#get-specific-app-with-id

Labels (1)
1 Solution

Accepted Solutions
Frank_S
Support
Support

Further @J_Dbwsk 

 

If you wish to ensure you are using supported APIs only (and not private apis which are NOT supported - in case you encounter anyone trying to use private apis) we highly recommend using the supported API library to meet specific requirements.

https://help.qlik.com/en-US/nprinting/May2023/Content/NPrinting/Extending/NPrinting-APIs-Reference-R...

 

To use public apis in a Qlik App, checkout this article and the related articles therein.

https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-co...

 

If public API's are not available via the api library, then you may wish to submit an 'idea' here.

Ideas | Qlik Community

 

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Risky move @J_Dbwsk 

I dont think this CLI is officially supported by Qlik so you are on your own with this. Looking at update history it also does not look like it has been worked on lately.  I would not go down this path with unsupported solution - it may turn out as waste of time.

@Ruggero_Piccoli - do you know if anyone from Qlik actually supports it?

cheers

 

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Ruggero_Piccoli
Support
Support

Hi,

This is not a Qlik product. I suggest you to ask to the developer. 

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Frank_S
Support
Support

Further @J_Dbwsk 

 

If you wish to ensure you are using supported APIs only (and not private apis which are NOT supported - in case you encounter anyone trying to use private apis) we highly recommend using the supported API library to meet specific requirements.

https://help.qlik.com/en-US/nprinting/May2023/Content/NPrinting/Extending/NPrinting-APIs-Reference-R...

 

To use public apis in a Qlik App, checkout this article and the related articles therein.

https://community.qlik.com/t5/Official-Support-Articles/How-to-create-NPrinting-GET-and-POST-REST-co...

 

If public API's are not available via the api library, then you may wish to submit an 'idea' here.

Ideas | Qlik Community

 

Kind regards...

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
J_Dbwsk
Contributor II
Contributor II
Author

Hello, thanks to everyone for their answers. I am aware QlikNPrinting-CLI is not offical Qlik-supported tool, just was hoping someone else uses this and managed to achieve what I wanted. But in that case I will look into you suggestions.