cancel
Showing results for 
Search instead for 
Did you mean: 

Document Name (Auto Name)

LeonVieira
Champ on-the-rise
Champ on-the-rise

Good evening,

Hope all is well,

 

Currently working on a table to display related document information, and I would like to display thedocuments with their autoname. Currently only way I can see to do tha is to use the https://example/exampleAPIServer/onbase/core/documents/{id} endpoint to get the metadata, but the issue or rather problem I am facing is that this only returns the metadata for one document. Is their not a way to retrieve the autonames for all the docuement types returned by a query?

 

Thank you in advance.

1 REPLY 1

Justin_Carlson
Content Contributor
Content Contributor

Beginning in EP5, I believe the /documents endpoint (without the "/{id}") supports passing in multiple "id" query string parameters. So you should be able to do /documents?id=101&id=102&id=103.

https://sdk.onbase.com/rest/docs.html?product=OnBase&release=Foundation23.1&spec=document#operation/...

 

 

The other option or way to look at it, would be to return this information with your query since you stated "Is their not a way to retrieve the autonames for all the docuement types returned by a query". If it's an already configured custom query, Name could be added as a display column. If it is an ad hoc document query, you can add userDisplayColumns when constructing the query, and one of the displayColumnType's is "DocumentName". This approach should ensure that the document name is returned with the query results, thus avoiding any additional API calls to get the name (and this approach should be available prior to EP5 as well). If you are executing a query in this way, this is actually the approach I would use. 

Getting started

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.