Skip to Content
0

Cannot create Deal Registration with existing Account via Odata in C4C

Nov 03, 2017 at 10:43 AM

82

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Nov 27, 2017 at 10:44 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0