Custom Fields
Returning custom fields (flexi-fields)
In Unit4 ERPx, master files can have custom fields (Flexi-fields) attached to them. The corresponding Object API endpoints (Enterprise Documents) can return these custom fields.
Definition
Since they are attached dynamically based on the current setup for the requested companyId and the authorisation of the user on whose behalf the request is being made, it is impossible to describe them directly in the API definition. This means we need to request custom fields explicitly. There are several ways to discover what we can use:
- Using the ERPx Web application, we can check the proper setup.
- We can use API calls to discover the proper setup, like
/v1/custom-fields/A4, and investigate the result. - Preferred - Request the JSON Schema for the given ObjectAPI request, as described at Schemas.