cancel
Showing results for 
Search instead for 
Did you mean: 

can I get the document path saved in onbase using UNITY API

Jorge_Herrera
Champ in-the-making
Champ in-the-making

can I get the document path saved in onbase using UNITY API

1 ACCEPTED ANSWER

Rob_Herman
Star Contributor
Star Contributor

No, the Unity API does not provide that ability. Can you let us know what you're trying to do?

View answer in original post

5 REPLIES 5

Rob_Herman
Star Contributor
Star Contributor

No, the Unity API does not provide that ability. Can you let us know what you're trying to do?

Hello 'Rob,

I'm not the original author of this question but I'm interested on this answer, this is really limitating that we don't have the possibility to get the path, I need the extension of the stored document (pdf, tif, etc) and the document.DefaultFileType.Extension property is giving me "???" and the file type is telling me only "Image File Format (2)" the DisplayType is giving me Image only and I need to determine whether this is a tif, jpg, pdf, etc,

Thank you,

Best Regards,

Manuel

Manuel,

In the API, you can get the file extension from the PageData object once you have queued up the document.

Best Regards,
Shane

Hello Manuel,

Try checking the extension at the rendition level. Something like:
Document.DefaultRenditionOfLatestRevision.FileType.Extension

It is highly likely that the default FileType could actually be configured to '???' but the actual rendition should be complete.

If that doesn't change your results, give us a call via the API Support hotline and we can take a closer look.

Thank you,
Bryan Sorensen
API Analyst| OCAPI - OCI
API Support Team