Using following code to create new record:
var entity = new my_entity(); _crmContext.AddObject('my_entityset_name', entity); _crmContext.SaveChanges();
But enocuntered this error:
"message": "Invalid type for entity id value", "type": "System.ServiceModel.FaultException1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",
`
Any suggestion? And when adding new object, how to only send set properties?
Using following code to create new record:
var entity = new my_entity(); _crmContext.AddObject('my_entityset_name', entity); _crmContext.SaveChanges();
But enocuntered this error:"message": "Invalid type for entity id value", "type": "System.ServiceModel.FaultException
1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]", ` Any suggestion? And when adding new object, how to only send set properties?