You are getting an error, "Party Prospect Party missing::Please enter a party with role Account.::Please enter an account" While creating lead using Odata.
SAP Cloud for Customer
Reproducing the Issue
- Go to Administrator -> Odata Service Explorer
- Choose c4codataapi and then click Test
- In the next screen, Choose Lead Collection from the Entity sets
- Select the method as POST
- In the tab Form, Provide value for Name and then execute the Odata Call
- You will get the error, Party Prospect Party missing::Please enter a party with role Account.::Please enter an account
This is because, Company is a mandatory field for creating Lead.
- In the Form, Add value for the field Company and then execute the Odata Call
- JSON Payload :
- Where XXXX and YYYY are values for the field.
Lead Collection, Odata, Party, Company , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem