Reading instance data
The Get data from an element instance mode allows you to retrieve data for a specific instance by calling a defined endpoint. To determine to which instance the data applies, 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 fields and Item lists 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 represents the value of a given form field in the response. Instance data is returned in JSON format and placed in the Data node, e.g.,:
{
"Data":
{
"Field1": "value1",
"ItemsList1":
[
"value1","value2"
]
}
}