Use the method GetDocumentTask(). It takes "DocumentTaskID" and "Scope" as parameters. You can get the Document task ID from a number of methods, but if you do not have it listed, you will probably have to go via GetSourceDocumentFolders, GetSourceDocumentNodes, GetTasksforDocument and then from there extract the task id and send into GetDocumentTask.
I have another issues now. While I was developing the website, I could use the API. After I published the website, I get a "Forbidden" server error on the pages that uses the API. When I do a test to see who the current user identity is when running the website in the deployed environment, I get my username back so it should have worked.
Thanks a lot for the help provided. I have succesfully created all the functions i need.
The problem is that i have done them in C#, but i have converted it to VB because i need to mix it up with another code i already have. Now when i converted it to VB, i had to convert also the classes ServiceKeyBehaviorExtensionElement, ServiceKeyClientMessageInspector and ServiceKeyEndpointBehavior, but something seems to not work because the function QMSClient.GetServices(ServiceTypes.QlikViewServer) doesn´t get me an ID that i can then pass to the other functions.
Do you have any ideas? Have you happened to work it out on VB?
I am getting the following error when executing my project.
The type 'Qv_License_Management.Service_Support.ServiceKeyBehaviorExtensionElement, Qv_License_Management, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null' registered for extension 'serviceKeyBehavior' could not be loaded. (C:\Users\e0615022\documents\visual studio 2010\Projects\Qv License Management\Qv License Management\bin\Debug\Qv License Management.vshost.exe.config line 12)