ahaydon / Qlik-Cli-Windows

Qlik-Cli for Windows
https://adamhaydon.uk/Qlik-Cli-Windows/
GNU General Public License v2.0
110 stars 51 forks source link

Issue with update/rename/delete Trigger #200

Open azharbessrour opened 1 year ago

azharbessrour commented 1 year ago

Hello,

I have a question, Is it possible to create a function in order to update/rename and delete a trigger ? There is only the function Add-QlikTrigger. And I'm wondering if it's possible to do that same as the Task functions ?

Thank you so much for your help

ahaydon commented 1 year ago

There are some functions for managing schedule triggers Get-QlikTaskSchedule and Remove-QlikTaskSchedule

The equivalent functions for event triggers have not been added so you would need to use Invoke-QlikGet /qrs/compositeEvent to get existing event triggers and the Invoke-QlikPut function with the ID appended to the path for updating the trigger, to update a schedule trigger you can do the same with the path /qrs/schemaEvent.

JackyKuiJiang commented 1 year ago

There are some functions for managing schedule triggers Get-QlikTaskSchedule and Remove-QlikTaskSchedule

The equivalent functions for event triggers have not been added so you would need to use Invoke-QlikGet /qrs/compositeEvent to get existing event triggers and the Invoke-QlikPut function with the ID appended to the path for updating the trigger, to update a schedule trigger you can do the same with the path /qrs/schemaEvent.

Hi Adam, I tried both /qrs/compositeevent and /qrs/reloadtask/update, unfortunately they didn’t work.