cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create Deal Registration with existing Account via Odata in C4C

0 Kudos

Hey community,

I am trying to create a Deal Registration in Cloud For Customer using an OData service. This works fine when creating a new account (customer), but doesn't seem to work, if I try to do it with an existing account:

It gives me the error: "Party Prospect Party missing::Please enter a party with role Account.::Please enter an account." even though I include the AccountID in my request.

Account with ID 1000026 is a valid customer in my C4C system and using the UI of C4C, I can create a deal registration with this information.

This seems to be a bug in the Odata service pcmportal.

Does anybody know a workaround? SAP team, can you help?

Kind Regards,

Patrick Deutschmann

0 Kudos

any solution here? having similar issue with not being able to add existing account or add new account/contact data like in a lead

Accepted Solutions (0)

Answers (1)

Answers (1)

anurag_nath3
Employee
Employee
0 Kudos

Hi Patrick,

To update an existing Account please use the function PATCH instead of POST.

POST function is used to create new records in the system it is not used to update the existing ones.

You can refer the below link for more information on the use of function and sample payloads.


URL= https://github.com/SAP/C4CODATAAPIDEVGUIDE

Regards,
Anurag Nath

0 Kudos

Hey Anurag,

thanks for your reply. However, I am not trying to edit an existing Account. I am trying to create a new Deal Registration with an existing Account.

So I tried the PATCH-Approach, but it doesn't work (Error: "The specified HTTP method is not allowed for the resource identified by the Data Service Request URI" – as a PATCH edits an existing deal registration, but I want to create a new one).

Do you know how to create a new deal registration with an existing Account?

Regards,
Patrick