โ08-30-2022 03:49 PM
I have an array called records and this contains an array called actions to be mapped to an API response, i have mapped the records source list correctly but when selecting the actions source list i am not given the ability to map the actions datapil.
โ08-30-2022 03:51 PM
Try re-saving/refreshing the schema in step 8 then attempt to map it in again.
โ08-30-2022 04:09 PM
Joseph Blanchett tried that sadly same issue, seems to be the case a bunch of other recipies aswell where ever i have an array that contains an array workato wont recognize the child, i must be doing somthing wrong somewhere as this is a basic requirment for message processing.
Example Schema:
[
{
"control_type": "number",
"label": "Object ID",
"parse_output": "float_conversion",
"type": "number",
"name": "objectId"
},
{
"control_type": "text",
"label": "Title",
"type": "string",
"name": "title"
},
{
"control_type": "text",
"label": "Link",
"type": "string",
"name": "link"
},
{
"control_type": "text",
"label": "Quote name",
"type": "string",
"name": "quoteName"
},
{
"control_type": "text",
"label": "Valid",
"type": "string",
"name": "valid"
},
{
"control_type": "text",
"label": "Amount",
"type": "string",
"name": "amount"
},
{
"name": "actions",
"type": "array",
"of": "object",
"label": "Actions",
"properties": [
{
"control_type": "text",
"label": "Type",
"type": "string",
"name": "type"
},
{
"control_type": "text",
"label": "Confirmation message",
"type": "string",
"name": "confirmationMessage"
},
{
"control_type": "text",
"label": "Confirm button text",
"type": "string",
"name": "confirmButtonText"
},
{
"control_type": "text",
"label": "Cancel button text",
"type": "string",
"name": "cancelButtonText"
},
{
"control_type": "text",
"label": "Http method",
"type": "string",
"name": "httpMethod"
},
{
"control_type": "text",
"label": "URI",
"type": "string",
"name": "uri"
},
{
"control_type": "text",
"label": "Label",
"type": "string",
"name": "label"
},
{
"control_type": "number",
"label": "Width",
"parse_output": "float_conversion",
"type": "number",
"name": "width"
},
{
"control_type": "number",
"label": "Height",
"parse_output": "float_conversion",
"type": "number",
"name": "height"
}
]
}
]
โ08-30-2022 04:25 PM
looks like Workato has a bug (tested in chrome) the page forsnt allow you to select the datapil for the array (doesnt allow you to select) but iy you hightlight the text and drag it to the source list then it works.
โ08-30-2022 06:33 PM
Can you share the raw data (JSON or XML or otherwise) that mapped into the datapills shown in the screenshot?