How to create a payload within OIC
Content
Hello,
We are reading a bunch of records from third party using REST adapter GET. Basically, we get a collection in ITEMS array.
We want to insert these records into vbcs BO. we wont be able to insert these records as is. Bcaz vbcs POST REST needs the request payload to be converted in following format ( content-type = application/vnd.oracle.adf.batch+json )
{
"parts": [
{
"id": "part1",
"path": "/MYDATA",
"operation": "create",
"payload": {
"myId": "8798",
"enabled": "Y",
"Status": "A",
"prdid": "112211221",
"city": "Dallas",
"state": "TX"
}
}
,
{"id": "part2",
"path": "/MYDATA",
"operation": "create",
"payload": {
"myId": "8888",
"enabled": "Y",
"Status": "A",
"prdid": "112211244",
"city": "Las Vegas",
"state": "NV"
0