Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Adfc_NZ
Contributor III
Contributor III

Automation to return an app detailed reload logs

Hi,

I have just starting to have a go at creating a very simple automation to extract (in some format, haven't got that far yet) the detailed reload log of a specific app that is sitting in a Managed space.

I have space admin privileges on the space that app is sitting on.

The issue is, I am using the "Raw API List Request", with the full path populated with the app's and the space's ID (so, not using variables or anything). I don't have any query parameters.

When I run the automation, I get the below error:

Adfc_NZ_0-1757635193467.png

Any ideas what I am doing wrong?

Labels (1)
2 Solutions

Accepted Solutions
André
Creator
Creator

Oh yep I gotchu - you were on the right path with the Raw API Request block in that case.

Do a GET to path "apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.

Andr_1-1757886509401.png

Andr_0-1757886422991.png

 

View solution in original post

André
Creator
Creator

Hey, no worries.

Yep Qlik are changing from versioned API to namespaces, so the Raw API Request block now requires "v1/" included in the path.

Do a GET to path "v1/apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.

From the Raw API Request block path help text:

For example:

For v1 APIs, use the format "v1/{resource}", such as "v1/spaces".
For v2 APIs, use the format "{namespace}/{resource}", such as "analytics/change-stores".
The final URL is in this format: https://{current_qcs_tenant_url}/api/{path}. See this block's description for a list of available APIs. Do not include query parameters here, use the Query Parameters field for this.

 

View solution in original post

14 Replies
André
Creator
Creator

Hi @Adfc_NZ !

You can use the List Reloads block under the Qlik Cloud Services group to get a list of reload record details.

Andr_0-1757650020515.png

 

Shai_E
Support
Support

@Adfc_NZ 

@André answer is the way to go

I don't think there is validity to use a raw api block when there is a built in option like already mentioned

Adfc_NZ
Contributor III
Contributor III
Author

Thank you Andre, much appreciated.

Yes it is working, but I guess I started this all wrong, as the result shown in the Output block that results from the List Reloads is not the detailed log that I am looking for. 

Any suggestions?

André
Creator
Creator

No worries - what detail are you looking for? The only data points available are listed in the API docs examples here: Reloads REST | Qlik Developer Portal

Adfc_NZ
Contributor III
Contributor III
Author

Thx Andre.

I am looking for a way to automate the download of the Reload Logs, the ones we can get by actioning the "Details" in an app in a space and then "Reload History" followed by "View" and finally 

Adfc_NZ_0-1757884074785.png

Ultimate goal: an automation that I would run manually/on demand, to get me the detailed reload log of an app I chose, to save me all the above clicking. 🙂

André
Creator
Creator

If you target/output "{ $.listReloads.item.log }" that should give you what you're after 😊

Andr_1-1757884829211.png

 

Adfc_NZ
Contributor III
Contributor III
Author

Sorry to be a pain Andre, and I am appreciative of your help and quick replies :), but I am looking for the "Detailed log", not the summary/output that is shown when we manually reload an app. I.e. the log we can download using the button "Download detailed log". I've been looking in the blocks, can't find the one that will allow for that item to be selected and added to an output...

André
Creator
Creator

Oh yep I gotchu - you were on the right path with the Raw API Request block in that case.

Do a GET to path "apps/aaaaaaaaa-bbbb-cccc-dddddddddddd/reloads/logs/{$.listReloads.item.id}" where 'aaaaaaaaa-bbbb-cccc-dddddddddddd' is your app ID and '{$.listReloads.item.id}' is the reload ID.

Andr_1-1757886509401.png

Andr_0-1757886422991.png

 

Adfc_NZ
Contributor III
Contributor III
Author

Thank you Andre! That did the trick, and the output is the full detailed log as I wanted. I need to work no on how to go through all the reloads of an app, pick the latest one and then export it to a file so I can search within it. Wish me luck!! 😄 😄