We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Batch Operations With Nested Objects

Received Response
16
Views
2
Comments
edited Apr 10, 2019 2:27PM in Visual Builder 2 comments

Summary

Batch operations with nested objects

Content

Hi everyone,

I want to batch operations on business object in VBCS. 

1)I should use nested objects for batch operation. Is there another way to create nested objects manually?

2)How can I rollback when crud operations with failure?


Simple Nested Object

{
    "parts": [{
        "id": "part1",
        "path": "/Employee/101",
        "operation": "update",
        "payload": {
            "Salary": 10000,
            "id" : 1001,
            "email": "[email protected]",
            "personalInfo": {
                "name": "Jack",
                "address": {
                    "line1": "westwish st",
                    "line2": "washmasher",
                    "city":  "wallas",
                    "state": "WX"
                }
            }
        }
    }, {
        "id": "part2",
        "path": "/Employee/102",
        "operation": "update",
        "payload": {
            "Salary": 20000,
            "id" : 1002,
            "email": "[email protected]",
            "personalInfo": {
                "name": "Alex",
                "address": {
                    "line1": "westwish st",
                    "line2": "washmasher",
                    "city":  "wallasx",
                    "state": "USA"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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