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: 
hornstrup
Partner - Contributor III
Partner - Contributor III

Auto-update global HUB Insights Home

Hi all, 

I have a case where I need to automatically add collections to the Insights Home page - adding and removing widgets in a centrally managed page, using logic automatically - preferably using automations.

I have retrieved the enpoint i need to call:

api/v1/hub-dashboards/<HubDashboardID>


... and I need to do a PATCH with this body:

[{"op":"add","path":"/widgets/0","value":"<WidgetID>"}]

(the zero being the order of the widgets, which is fine, I can make that dynamic.) 

This works fine - however, I'm unable to locate the..
value:"WidgetID"
...anywhere. I can retreive it from DevTools when inserting the collection manually through the interface - but I can't deduct from anywhere what that ID is, meaning I can not automate the process. 

I'm unsure what this ID really represents, as it is NOT the collectionID unfortunately - but it does appear to be consistent, ie. linked to the collection to some extend.


I'd assume this would be a - not too uncommon - case for organizations managing multiple tenants through the Platform Operations blocks in automations, needing to align the insights home pages across tenants.

Anyone out there in the Qlik Community who has any help at hand? 

All the best, 

Labels (2)
1 Reply
hornstrup
Partner - Contributor III
Partner - Contributor III
Author

For anyone who might be interested:

I believe I found a way. It appears that a widget is created in the background, and linked with the collection ID. I found a /hub-widgets enpoint (by guessing), from where I can get the full list of widgets as well as create new ones - from there I can inject them into the Insights Home using the code above.