Visual Builder

Get Involved. Join the Conversation.

Topic

    Vinod Kumar Kv
    How to do a batch request for parent and child (Both...
    Topic posted October 24, 2018 by Vinod Kumar KvBronze Medal: 1,250+ Points, tagged Custom Code, Database 
    75 Views, 2 Comments
    Title:
    How to do a batch request for parent and child (Both parent and child - NEW)
    Summary:
    How to do a batch request for parent and child (Both parent and child - NEW)
    Content:

    How to do a batch request for parent and child (Both parent and child - NEW)

    Below is batch request JSON for inserting multiple records in single table. Like this what will be the JSON for PARENT-CHILD batch insert.

    SAMPLE BATCH INSERT JSON into single table:

    var batchCreate={
        "parts": [{
              "id": "part1",
              "path": "/Test",
              "operation": "create",
              "payload": {
                "id":"",
                "name":"Nishant",
                "title":"Manager"
              }
            }, {
              "id": "part2",
              "path": "/Test",
              "operation": "create",
              "payload": {
                "id":"",
                "name":"Veda",
                "title":"Director"
              }
            }]
        };

     

    Comment

     

    • Shay Shmeltzer

      Did you try nesting the children in the parent?

       

    • Vinod Kumar Kv

      No, we have not done,We are aware of only Parent Jason format.

      We need the Jason format of child to enter in the Parent both together.Please share the sample Jason format to include the child in the parent.