You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to create a payload within OIC

edited Jun 21, 2021 10:18PM in Integration 5 comments

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"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!