โ07-05-2022 04:36 AM
Hi, need help to output multiple records to api endpoint response.
โ07-05-2022 07:00 AM
my response schema looks like this:
[
{
"label": "Opportunity",
"type": "object",
"name": "Opportunity",
"properties": [
{
"control_type": "text",
"label": "Name",
"type": "string",
"name": "name"
},
{
"name": "amount",
"type": "string",
"optional": false,
"control_type": "text"
},
{
"name": "description",
"type": "string",
"optional": false,
"control_type": "text"
}
]
},
{
"label": "Issue",
"type": "object",
"name": "Issue",
"properties": [
{
"control_type": "text",
"label": "Name",
"type": "string",
"name": "name"
}
]
}
]
โ07-06-2022 01:49 PM
hi Darren
Can you try this one:
[
{
"name": "Opportunity",
"type": "array",
"of": "object",
"label": "Opportunity",
"optional": false,
"properties": [
{
"control_type": "text",
"label": "Name",
"type": "string",
"name": "name",
"optional": true
},
{
"control_type": "text",
"label": "Amount",
"name": "amount",
"type": "string",
"optional": true
},
{
"control_type": "text",
"label": "Description",
"name": "description",
"type": "string",
"optional": true
}
]
},
{
"name": "Issue",
"type": "array",
"of": "object",
"label": "Issue",
"optional": true,
"properties": [
{
"control_type": "text",
"label": "Name",
"type": "string",
"name": "name"
}
]
}
]
โ07-06-2022 01:51 PM
Thanks.. this solves it!