I'm making a custom app and I have a couple of fields that are pulling data from an RPC and that all works fine but I can't get the data to map to a json body for that call.
My Mappable parameters are like this:
[
{
"name": "candidate_id",
"type": "number",
"label": "Candidate ID",
"required": true
},
{
"name": "parent_id",
"type": "select",
"mode": "edit",
"options": {
"store": "rpc://industryID",
"nested": [
{
"name": "ids",
"type": "select",
"label": "Sub Industry ID",
"multiple": true,
"options": "rpc://sunindustryId",
"required": true
}
]
},
"label": "Sub-Industry ID",
"required": true
},
{
"name": "body",
"type": "json",
"parent_id":"{{parameters.parent_id.value}}",
"ids":"{{parameters.ids.value}}"
}
]
My call looks like this:
{
"url": "/api/v2/candidate/{{parameters.candidate_id}}/subindustries",
"method": "PUT",
"qs": {},
"body": "{{parameters.body}}",
"headers": {},
"response": {
"output": "{{body}}"
}
}
The body of this call is meant to look like this: [ { "parent_id": 9999, "ids": [ 0 ] } ]