Issue with Array in JSON
Summary
Arrays not being handled correctly with in Json requestContent
Hello,
I hope you can help me with the following. I have an integration where I need to push Opportunities to JDEdwars via standard REST adapter.
The Json request have some section that are arrays, but is creating some issues: formActions, gridRowInsertEvents.
{
"token": "****",
"formServiceAction": "U",
"deviceName": "CRM",
"formName": "****",
"formActions": [{
"gridAction": {
"gridID": "1",
"gridRowInsertEvents": [{
"gridColumnEvents": [{
"command": "SetGridCellValue",
"value": "175516",
"columnID": "14",
"columnDescription": "CRM Row Id"
},
.....
]
}
]
}
},
{
"command": "DoAction",
"controlID": "12"
}
]
}
The issue comes when OIC builds the request and send it over to JDE. It ignores the [] for the formActions section and gridRowInsertEvents sections, and also the {} that enclose command and controlID are also ignored. This is how OIC is building that request:
Tagged:
1