Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Kesavulu_R
Partner - Contributor II
Partner - Contributor II

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 - Contributor II
Partner - Contributor II
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.

Kesavulu_R
Partner - Contributor II
Partner - Contributor II
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"

Kesavulu_R
Partner - Contributor II
Partner - Contributor II
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.