Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can I get a new document's guid after I copy it to the folder.
Hi,
I'm using qmsapi. I want to upload a qvw file and set permission to it. But after I upload the qvw file I can't get the qvw file 's guid. I use the code below:
string guid = QMSService.GetDocumentGuid(FileUtils.GetFullFileName(urlPath));
I can't get the guid until almost 1 min later.
How can I get the guid immediately.?
Thanks.
Hi,
Is there a slow connection to the API? Does other commands go much faster? If so, is there a lot of documents in that folder?
Could be that it just takes a long time to generate the contents of the folder.
Regards,
Erik
Thank you.
I've solved the problem.
Here is a trick that may help, can you check and let me know the result?
http://community.qlik.com/message/265711#265711
Basically first to clear the qv cache before the upload
// clear the QMS's QVS object cache from user document listings
// so that the any new user documents can be discovered
apiClient.ClearQVSCache(QVSCacheObjects.UserDocumentList);