cancel
Showing results for 
Search instead for 
Did you mean: 

Odata service keep update item instead of adding a new one.

doralon
Participant
0 Kudos
312

Hello,

I am trying to create a mass data via OData service in bydesign.

i have created a custom bo that has item node.

the json request in postman look like this:

{

"ParentObjectID": "00163E70A58D1EE8BCEB951231259E",

"ManufactureCatalogNumber": "113",

"Confirm": true,

"ManufactureName":"A.M.D"

}

(113 is a random number for my ID creation, and its not a key for the item node)

For the first row it works prefectly.

after the first row, it continues on updating the first row. (even though i give different values each loop)

any one has an idea?

Thank you,

Dor Alon

View Entire Topic
doralon
Participant
0 Kudos

Hello everyone,

If anybody have the same problem, we found the solution:

the problem was the multiplicty of the node. to allow multiple creates we need to change from

item {

}

to

item[0,n] {

}

once the multiplicity is configured in the code, it will solve this issue.

Thank you,

Dor Alon