Skip to Content
0
Oct 30, 2018 at 04:15 AM

How to Insert/Update data base on condition with SAP c4c OData?

1157 Views Last edit Jan 08, 2019 at 06:44 PM 2 rev

Dear experts,

After creating new custom BO and its Odata service, now I want to do some checking before create new BO in Odata.

If A already exists in system(check field A, field B and field C), I will update it and otherwise I will create new BO.

With Post method, system always create new item I don't know how to check exist to update it

With Put method, it required to pass ObjectID to update that record but ObjectID is generated by Odata, I don't want external system to store it.

Could you please give me your advice? Thanks a lot for your help!

Regards,

Huy-Nguyen