Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

REST API Batch Action Issue

edited Jun 17, 2020 2:29PM in Sales 10 comments

Summary

Does the part sequence matter?

Content

Hi,

In the batch action, I noticed that if I call create before update, the batch API is failed. Do you know why?

Here is the batch payload (working version - update is before create)

{
"parts": [
{
    "id""part1",
    "path""/accounts/1821593/child/Address/1659286",
    "operation""update",
    "payload": {
        "Address1""100",
        "Country""US"     
    }
},
{
    "id""part2",
    "path""/accounts/1821593/child/Address",
    "operation""create",
    "payload": {
        "CreatedByModule""FUSE",
        "Address1""1a",
        "Country""US"
    }
}
]
}
 

Here is the batch payload with same data (failed version - create is before update). In this call, I got error 'part2 fallo: Attribute Country in AccountRestAM.Account is required.'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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