08-26-2013 10:22 AM
I'm currently using the following operations:
mzwfGetUserQueues //this to get the lifecycle queues where I want to search
and mzwfGetWorkDocumentsByQueue //to see if the document is within the queues
When I search a Queue and the document is not found, I get error code -72 "Document Not Found in Queue," which is expected.
But when the document is in the queue I get error -81 "Invalid Folder Type," which is unexpected.
code= g_Onbase.mzwfGetWorkDocumentsByQueue(g_SessionHandle, queue.ID, docID, Constants.MZ_FIRST, out docName);
if (code> 0 || code == -81)
{
outputMsg("code: " + code+ ", the document is in queue :" + queue.Name);
break;
}
any ideas?
08-26-2013 10:36 AM
Hi Roland,
The mzwfGetWorkDocumentsByQueue method assumes you have a Work Folder set up for the queue. As per the SDK:
"This method will retrieve documents currently within the Work Folder of a Life Cycle Queue. If no Folder Type is defined for the Queue or Life Cycle, "OBAPI_E_INVALID_FOLDER_TYPE (-81)" will be returned"
If you just want to get all the documents in a queue, look at using the mzwfGetUserDocumentsByQueue method.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.