Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OData - Can't add or update Entity with non edm property types #642

Open
tbritton opened this issue Aug 20, 2012 · 1 comment
Open

OData - Can't add or update Entity with non edm property types #642

tbritton opened this issue Aug 20, 2012 · 1 comment

Comments

@tbritton
Copy link

I'm trying to use Reslet with the OData extension as a client to Dynamics CRM 2011. The JAVA code generation works fine. I can query fine, including non edm property types. However, when trying to add or update an entity, any property of type other that edm.* is not serialized to xml and therefore not POSTed or PUT. On add the properties are omitted and on updates the values are lost. Is this a known limitation of Restlet or am I doing something wrong. Here is an example of a property in the metadata:

<Property Name="new_partnergroup" Type="Microsoft.Crm.Sdk.Data.Services.EntityReference" Nullable="false"/>

Classes generated include the property.

private EntityReference new_partnergroup;

XML to Object works fine, Object to XML doesn't work.

I'm using Restlet JEE v2.0.14

Any help would be much appreicated.

Regards,
Tim

@jlouvel jlouvel added this to the 2.3 M5 milestone Aug 15, 2014
@jlouvel
Copy link
Member

jlouvel commented Aug 15, 2014

Support for complex property has been improved with this pull request #940

@jlouvel jlouvel modified the milestones: 2.3 M5, 2.3 M4 Oct 24, 2014
@jlouvel jlouvel modified the milestone: Unplanned Nov 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants