12-13-2018 11:42 AM
I have a customer running OnBase 17. They have a number of different document types in a Document Type Group, named "TEST". Whenever I try to find any of these document types via the API, I ALWAYS get "null". The objective is to query the document type and return all documents within a date range.
What makes this interesting is that the process works successfully for many other document types, NOT in the Document Type Group "TEST"
Any thoughts?
It runs as a Service on a Windows Server 2012 machine. It accepts request files that specify document types (by ID Number) and dates, then I export the documents to a network location for a 3rd party reporting application to use.
I have attempted "hard-coding" the Document Type Name, and verified that my "app" is connected.
The call is:
DocumentType docType = app.Core.DocumentTypes.Find(long.Parse(docTypeNum));
I go on to build a query utilizing the DocumentType.
This call always returns null when run against any number that is an ID for a Document Type in the DTG "TEST"
12-13-2018 01:02 PM
Hi, John, is the OnBase user that you're connecting through the API a member of any group that has access to that document type and/or document type group in OnBase Configuration?
12-14-2018 08:39 AM
Thanks for replying to my question, Sean.
Yes. The user I am connecting with is a member of the "MANAGER" user group and I verified that the user group has access to both the Document Type and Document Type Group. I also verified that there were no overrides, too. I used the same user to log in to the client and retrieve documents of the Document Type I am trying to access via the API.
12-14-2018 11:11 AM
Try recycling the app pool for the service your are connecting to through the API. That will refresh the list of doc types if it has been added since the last reset.
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.