I would think something like
{
"title": "accountnumber",
"type": "object",
"properties": {
"zone": {
"type": "object",
"properties": {
"tax": {
"type": "string"
},
"location": {
"type": "string"
},
"orderdetails": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"quantity": {
"type": "integer"
}
},
"required": [
"id",
"quantity"
]
}
}
},
"required": [
"tax",
"location",
"orderdetails"
],
"additionalProperties": true
}
},
"required": [
"zone"
],
"additionalProperties": true
}
------------------------------
Jess Peebles
Spark New Zealand Trading Limited
------------------------------
Original Message:
Sent: 09-16-2024 14:55
From: Parthiban Kannaiyan
Subject: Passing array as input in the data action API
Hello Robert,
Thanks for the update, I have multiple products for the input but how to write the JSON code in the configuration?
Can you please help me on this?
------------------------------
Parthiban Kannaiyan
Cognizant Technology Solutions India Private Limited
------------------------------
Original Message:
Sent: 09-16-2024 14:23
From: Robert Wakefield-Carl
Subject: Passing array as input in the data action API
I have found the only way is to build the input as JSON code in the configuration tab instead of using the contacts.
------------------------------
Robert Wakefield-Carl
ttec Digital
Sr. Director - Innovation Architects
Robert.WC@ttecdigital.com
https://www.ttecDigital.com
https://RobertWC.Blogspot.com