Qlik Community

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Kesavulu_R
Partner
Partner

Replace and publish app using using QLIK CLI giving error 404 Bad request

Hi All,

Hi ,

I want to publish the app by replacing existing app using QLIK CLI.

I am using below command to achieve, Can anyone help me to replace existing app and then publish.

@Levi_Turner 

Thanks in Advance

Regards,

Kesavulu R.

Publish.png

2 Solutions

Accepted Solutions
Levi_Turner
Employee
Employee

Get-QlikApp -filter "stream.name eq 'Admin_Tracker' and name eq 'chekk'" should work (assuming there is an app in that stream with that name).

 

But yes, you can just statically define the ID if that's agreeable to your workflow.

View solution in original post

Levi_Turner
Employee
Employee

Get-QlikApp -filter "id eq {yourAppId}". For example: Get-QlikApp -filter "id eq 53c667f8-b6b9-431e-991e-fd9f9bf5d38f"

View solution in original post

6 Replies
Levi_Turner
Employee
Employee

Your immediate problem is that the $old variable is not being populated. Note how the path being called it /qrs/app//replace...

The next problem that you'll have is that the $new variable has multiple members (note the two visible GUIDs)

 

Levi_Turner_0-1606745422751.png

Kesavulu_R
Partner
Partner
Author

Hi Turner @Levi_Turner 

Thanks for the response. it was helpful 🙂

PFA, Is it possible to assign $old value using APP ID(self tried getting error). Because we are having apps published in multiple streams with same name?? 

For the same have followed attached steps to achieve the same(we are facing attached error) :

Kindly help us to resolve the issue, Thank You!

 

Regards,

Kesavulu R.

id.pngand.png

 

Levi_Turner
Employee
Employee

Get-QlikApp -filter "stream.name eq 'Admin_Tracker' and name eq 'chekk'" should work (assuming there is an app in that stream with that name).

 

But yes, you can just statically define the ID if that's agreeable to your workflow.

View solution in original post

Kesavulu_R
Partner
Partner
Author

Hi Turner, @Levi_Turner

Thanks above code is working. But static is not accepting and also have tried below attached command its giving error while going ahead with ID, Please help ,Thank Youiddd.png

 

Levi_Turner
Employee
Employee

Get-QlikApp -filter "id eq {yourAppId}". For example: Get-QlikApp -filter "id eq 53c667f8-b6b9-431e-991e-fd9f9bf5d38f"

View solution in original post

Kesavulu_R
Partner
Partner
Author

Hi Turner, @Levi_Turner 

Thanks for the above code is working.

One last question, We have two environments hosted for PROD with same applications in our project one for IND users another server for NA users based regions to route traffic of users.

Will you be able to maintain a mapping between india and NA server apps? I mean when an app is deployed in NA and India server they end up having two different app Ids. We want to have mapping of these ids for one of our requirements. Is it possible to do it using Qlik-Cli or any other way!

This will help in governance/ validation purposes for us to see if there are any app deployed only in one environment alone.

Regards,

Kesavulu R.