Get Dynamic Field Logic Values

Dynamic field values are metadata types in Laserfiche in which the value of one field controls the values that a user can choose in another field. In a dynamic field, selecting a value for a parent field determines what value are available in the "child" fields. Dynamic fields can contain multiple levels (for instance, only displaying the available model numbers for a particular model once the Model field has been filled), or can depend on more than one parent field (for instance, only displaying years relevant to a particular combination of manufacturer and model).

Request Overview

PUT https://api.laserfiche.com/repository/v1/Repositories/repoId/Entries/entryId/fields/GetDynamicFieldLogicValue

The example retrieves the child field values that correlate to the given parent field value California of field US States on template ID 1234.

PUT https://api.laserfiche.com/repository/v1/Repositories/r-abc123/Entries/12345/fields/GetDynamicFieldLogicValue
{
  "templateId": 123,
  "fieldValues" : {
    "US States" : "California"
  }
}

This call will return a response containing a dictionary of field names and their lists of corresponding child field values.

HTTP 200 Ok
{
  "US States": [
    "California",
    "Hawaii",
    "Ohio"
  ],
  "US City": [
    "Los Angeles",
    "Oakland",
    "San Diego",
    "San Francisco"
  ]
}  

Note that independent fields and non-dynamic fields in the request will be ignored. The response will only return related dynamic field value logic values for the given template. The API does not require that the given entry has the template with the dynamic field assigned. However, in order to avoid situations where the user does not have read access to certain entries, the entryId in the path should be set to entry currently being worked on or the parent folder in the case of importing a new document.