API does not return all applied/filled Metadata Templates for a File
Hello dear Box Developers,
we are trying to get all applied metadata Templates for a file via the '/search' or the '/folders/<folderId>' Endpoint. For achieving this, we are populating the 'fields' param with all available metadata Templates. The fields param looks something like this:
'metadata.enterprise_183944368.cihub,metadata.enterprise_183944368.gerdsMetadataTemplate,metadata.enterprise_183944368.leonsTemplate2,metadata.enterprise_183944368.myNewTemplateTest,metadata.enterprise_183944368.template2,metadata.enterprise_183944368.testju1,parent,representations,order,description,interaction_shared_link,shared_link,item_collection,lock,id,sha1,permissions,name,file_version,size,version_number,created_at,modified_at,content_created_at,content_modified_at,description,path_collection,metadata.global.properties,extension'
The problem we have is that only the first 2-3 (depending on the order of the values inside 'fields"') applied metadata Templates are returned for each file (in the 'metadata' object for an asset inside your resultset), even if all metadata Templates (in my case 5 + 1 default customMetadata Object ) are applied for a file. For our use case, we need all applied metadata Templates for a file. How can we achieve this?
Kind regards
Leon
-
Does your process allow you to search for the metadata instances on the file using this endpoint?
https://developer.box.com/reference/get-files-id-metadata/
Alex, Box Developer Advocate
-
Hello Alex,
as we are handling many assets "at once" it would be pretty expensive to make an additional call per asset.
Is there any possibility that you can return all applied / filled templates for the bulk endpoints:
- '/search',
- '/folders/<folderId>',
- '/collections/<id>/items',
- `/recent_items` ),
- `/folders/trash/items`
as well as for the versioning endpoint `/files/<assetId>/versions`?
This would be a huge improvement for our Box-Integration.
kind regards
Leon
-
I confirmed that this feature doesn't exist right now, and isn't currently being looked at for improvement. That said, you should up vote and comment on the pulse site - since that is where leadership grabs items for the roadmap.
サインインしてコメントを残してください。
コメント
7件のコメント