I'm using the V2 REST API with Laserfiche Cloud. I can get the list of TemplateDefinitions and FieldDefinitions for a given repository, but how do I get the list of fields that are used in a Template?
I see that a TemplateDefinition has a FieldCount property, but what are the fields that are used by the template?
Thanks!
Question
Question
Laserfiche Cloud Rest API - Get Fields for a Template
asked on November 22, 2023
0
0
Replies
replied on November 24, 2023
Given these methods that are available for metadata I don't see this option.
- Assign Template
- Write Values
- Assign Tags
- Assign Links
- Get Dynamic Field Values
Search mentions returning something called field name but does not display it as an array and does not go into any details about this field's purpose in the method. You could try running the method on an entry with multiple fields and see what you get.
1
0
replied on November 27, 2023
Hi!
You should be able to use /v2/Repositories/{repositoryId}/TemplateDefinitions/{templateId}/FieldDefinitions to get the field definitions for a specific templateId.
You can also use /v2/Repositories/{repositoryId}/TemplateDefinitions/FieldDefinitions with a query parameter to get the fields for a template with a specific name.
You can see those on swagger here
0
0
You are not allowed to follow up in this post.