Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible to add a DocumentTask to a document programatically?
The only method I can find in the QMS API is IQMS.SaveDocumentTask, but this requires an ID of an already existing Task.
Found the solution:
I need to manually create a template Task in the Management Console. This can be fetched, given a new ID and assigned to a source document. Then triggers can be created programatically and added to the Task before the task is then saved.
Edit: feels like I'm having a conversation with myself here.
So...
To me it seems that when adding a document I need to generate Task and Trigger XML files in C:\ProgramData\QlikTech\DistributionService\ and that it is not possible to do this via QMS API. It is possible to change triggers and tasks via this API though.
Found the solution:
I need to manually create a template Task in the Management Console. This can be fetched, given a new ID and assigned to a source document. Then triggers can be created programatically and added to the Task before the task is then saved.
Edit: feels like I'm having a conversation with myself here.