I'm using the ODataLib (http://odata.github.io) and the Client Generated Library to access Microsoft CRM's OData API (v9.0).
I'm trying to update the entity navigation property value (the GUID), but the update doesn't seem to do anything (no calls are made).
If I try to update the navigation property's value directly, I get an error saying that "CRM do not support direct update of Entity Reference properties, Use Navigation properties instead".
The entity is basically the middle entity in N:N relationship.
Basically what I'm doing in code is (semi pseudo-code):
Account a = _dao.GetAccount();
// This gets the dataservicecollection that tracks the changes
DataServiceCollection<MyRelationEntity> rel = _dao.GetMyRelationEntity();
rel.AccountId = a;
_dao.SaveChanges(SaveChangesOptions.PostOnlySetProperties);
Should I be using the AddLink, UpdateLink or something similar? They don't seem to do anything also.
I apologize if the terminology is not correct; I'm quite new to CRM.