Skip to Content
Former Member
Feb 17, 2017 at 03:45 PM

How to create a Lead via Odata POST? - C4C



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),

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.