02-09-2016 10:27 AM
Dear All,
How to check the create and delete a document permission for a user based on the document type in Unity API?
If anybody share the sample code much appreciated...
02-10-2016 03:30 AM
You will need create the DocumentType object and use something similar to
if(docType.CanI(DocumentTypePrivileges.DocumentDeletion))
{
... DO WORK ...
}
This should return a Boolean value based on whether access is available. You may need to consult your company's OnBase API certified co-workers for additional assistance or contact your first line of support.
02-09-2016 01:10 PM
Use the CanI method of the DocumentType object. CanI accepts a member of the DocumentTypePrivileges enumeration.
For your purposes, you will probably want to check DocumentTypePrivileges.DocumentCreation and DocumentTypePrivileges.DocumentDeletion.
02-09-2016 08:32 PM
02-10-2016 03:30 AM
You will need create the DocumentType object and use something similar to
if(docType.CanI(DocumentTypePrivileges.DocumentDeletion))
{
... DO WORK ...
}
This should return a Boolean value based on whether access is available. You may need to consult your company's OnBase API certified co-workers for additional assistance or contact your first line of support.
02-10-2016 03:42 AM
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.