Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How can I get a new document's guid after I copy it to the folder.

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.

2 Replies
ergustafsson
Partner - Specialist
Partner - Specialist

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

Not applicable
Author

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);