Skip to main content
Question

API does not return all applied/filled Metadata Templates for a File

  • May 22, 2025
  • 7 replies
  • 10 views

Forum|alt.badge.img

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

7 replies

Forum|alt.badge.img

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


Forum|alt.badge.img

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

 


Forum|alt.badge.img

Thanks for the reply. I'm going to reach out to an internal team for some help. I'll reach back out when I hear back. It may take some time. 


Forum|alt.badge.img

Hello Alex,

are there any updates on this topic?

kind regards

Leon


Forum|alt.badge.img

Hello Alex,

any Updates on this? Our Customers would love to have this feautre.

kind regards

Leon


Forum|alt.badge.img

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.


Forum|alt.badge.img

BoxPulse is such a nice idead. Thank you Alex :)