Metadata Query - Template Fields Limit
CompletedIs there any limitation around the number of distinctive templateKeys that can be used in the fields of the Metadata API query?
For example, I have files that will always have two templates applied to them (filetemplate1 and filetemplate2). They could also have one of two folder templates applied to them, depending on which folder the file is in (foldertemplate1 or foldertemplate2).
When I request fields from all 4 templates, I only get back fields from the file templates. But if I remove one of the requested file template fields, it starts including the missing folder template field. Seems like it can't handle retrieving values from 4 different templates?
Example query:
{
"from": "enterprise_XXX.fileTemplate1",
"query": "id = :id",
"query_params": {
"id": "1"
},
"ancestor_folder_id": "0",
"fields": [
"metadata.enterprise_XXX.fileTemplate1.SomeValue",
"metadata.enterprise_XXX.fileTemplate2.SomeValue",
"metadata.enterprise_XXX.folderTemplate1.SomeValue",
"metadata.enterprise_XXX.folderTemplate2.SomeValue"
]
}
Please sign in to leave a comment.
Comments
1 comment