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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
AG-gugelbisolutions
Creator II
Creator II

Qlik Sense SaaS Events API

Hi there, I'm struggling to find any good documentation or examples of Events API (https://qlik.dev/apis#event).

Where can I start?

Labels (2)
6 Replies
Levi_Turner
Employee
Employee

What are you trying to achieve? It is the endpoint which is exposed in the Console under Events

Levi_Turner_0-1649938690046.png

 

AG-gugelbisolutions
Creator II
Creator II
Author

Basically, I would like to trigger a nodeJS/enigma script when a specific app gets reloaded and I thought this API was suitable for this.

How do I use these events? 

Levi_Turner
Employee
Employee

Gotcha. So I was confusing the events with audits (https://qlik.dev/apis/rest/audits). So events are what are emitted by webhooks (https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-administer-webh...)

So from a use perspective, you will want to have a server listening for the POSTs from the webhook and from there do your business logic.

Since you cannot currently filter by App IDs, I would imagine that the volume of POSTs will be a bit too much for your use case (e.g. listening to every app which has reloaded).

While it isn't event driven, a polling option* on items (https://qlik.dev/apis/rest/items) with a focus on the resourceAttributes > lastReloadTime attribute would probably be the lightest approach for quickly proving value.

* i.e. calling the GET on the item every minute / hour / etc

AG-gugelbisolutions
Creator II
Creator II
Author

Thank you @Levi_Turner ! I'll give it a try tomorrow and let you know.

hakana
Employee
Employee

You actually can add a filter to the APP RELOADED WEBHOOK

But it's not exposed through the Management Console soo either use QAA (Qlik Application Automation) or the API (using qlik-cli)
https://qlik.dev/apis/rest/webhooks#%23%2Fentries%2Fwebhooks-post

AG-gugelbisolutions
Creator II
Creator II
Author

Unfortunately, I realized I will not be able to try the solutions you suggested for a long time.

Priority has changed.

I will keep this post as unsolved until then.