Batch Operations With Nested Objects
Summary
Batch operations with nested objectsContent
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": "jack@dev.com",
"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": "alex@dev.com",
"personalInfo": {
"name": "Alex",
"address": {
"line1": "westwish st",
"line2": "washmasher",
"city": "wallasx",
"state": "USA"