cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Lead via Odata POST? - C4C

Former Member
0 Kudos

Hi,

I am trying to create a new lead via C4C odata services, however I am getting an error when trying to create a LeanLead. I am doing a json POST to the url below (After fetching x-csrf-token),

myxxxxxx.crm.ondemand.com/sap/c4c/odata/v1/c4codata/LeanLeadCollection

With this data:

{
	"d": {
		"Company":"New Company Hawaii",
		"AccountPartyName" : "New COmpany",
		"ContactLastName": "Charles",
		"OwnerPartyName": "Nathan Charles",
		"Name": "Nathan Test via SOAP",
	}
}

I recieve this error: ERROR: No access possible via a 'NULL' data reference. (termination: RABAX_STATE)

I have successfully managed to create a ServiceRequest ticket with the same format and different fields but am struggling to create other Entities. There is extremity limited documentation on using POST to create entities other than ServiceRequest.

Accepted Solutions (0)

Answers (0)