Cannot create record for Custom Entity

Nov 18, 2012 at 12:15 AM
Edited Nov 18, 2012 at 12:19 AM


I'm trying to create new records for custom entities and i'm always receiving this error:

Error: 500: Internal Server Error: the specified entity does not exist.

This is the code:

	var zp_test = {};
	zp_test.zp_name = "Test name";
		function (result)
			var zp_testid = result.zp_testid;
		function(erro){ alert(erro.message);},

Does anyone have any tips about what i'm doing wrong?



Nov 22, 2012 at 8:25 PM

Hi There.

REST is case sensitive, so you need to make sure the name of your entity and attributes are the same name in CRM.

I found the easy way to build REST Query is to use the ODATA Query Designer

Hope this helps.


Nov 22, 2012 at 9:59 PM

Hi jaimieji,

You were right, it was a case sensitive problem. I'm new in crm and got confused since you may have different cases for .net coding and the REST/SOAP.

Thank you very much.