Reading instance data
The Get data from an element instance mode allows you to retrieve data for a specific element by calling a defined endpoint. To determine which element the data concerns, you must provide its ID in the endpoint call, e.g.:
https://webcon.bps/api/udef/db/1/MyEndpoint/123
The scope of returned data can be configured in the Element Data tab.
It is possible to define mappings, i.e. indicate form attributes and lists of items from which values will be returned in the body of the response from the API definition. In the Name field, you must provide a name that will represent the value of a given attribute in the response. Item data is returned in JSON format and placed in the Data node, e.g.:
{
"Data":
{
"Field1": "value1",
"ItemsList1":
[
"value1","value2"
]
}
}