I am using the API through a .NET application. Even though I can see the documents are grayed and Published is set to "No" when I use your Web interface, when it comes to the API calls from my app I always get document.published=1 . I need to filter the documents by the published property.
What can I do?
(It is not a synchronization/refresh issue, I have triple checked that.)
document.published is always =1 when using the SOAP API. LogicalDoc version v7.7
Moderator: car031
Post
Re: document.published is always =1 when using the SOAP API. LogicalDoc version v7.7
Hi flogical,
I just checked what you described against LogicalDOC Enterprise v 7.7.3 and by requesting the list of document in folder the flag published is properly valued.
I invoked the method listDocuments of the Document webservice
https://docs.logicaldoc.com/resources/w ... l#method35
Is it the same as you are trying too?
I just checked what you described against LogicalDOC Enterprise v 7.7.3 and by requesting the list of document in folder the flag published is properly valued.
I invoked the method listDocuments of the Document webservice
https://docs.logicaldoc.com/resources/w ... l#method35
Is it the same as you are trying too?
Post
Re: document.published is always =1 when using the SOAP API. LogicalDoc version v7.7
Code: Select all
private void list_Folder(object sender, EventArgs e)
{
// List the documents in a given folder
long startFld = 4;
Document.SoapDocumentServiceService _docserv = new Document.SoapDocumentServiceService();
// this will lists all the documents in the given folder
//Document.WSDocument[] _docs =_docserv.listDocuments(SID, startFld, "*");
// This list is filtered on .txt files
Document.WSDocument[] _docs = _docserv.listDocuments(SID, startFld, "*.txt");
foreach (Document.WSDocument res in _docs)
{
Console.WriteLine("####################");
Console.WriteLine("res.id: " + res.id);
Console.WriteLine("res.fileName: " + res.fileName);
Console.WriteLine("res.length: " + res.fileSize);
Console.WriteLine("res.date: " + res.date);
Console.WriteLine("res.type: " + res.type);
Console.WriteLine("res.published: " + res.published);
}
}
- Attachments
-
- Document listDocuments
- listDocuments.png (36.33 KiB) Viewed 8015 times
Who is online
Users browsing this forum: No registered users and 66 guests