Update OData entity

0
I already consume an OData service, but now I need to update an entity that comes from it. I tried updating by metadata URL, but it didn't reflect in the domain model. What should I do?
asked
2 answers
0

Hey Stevenson,

To update an entity in an OData service within Mendix, you need to follow specific steps.

  1. Ensure that the metadata URL you are using is up-to-date and correctly reflects the latest schema of your OData service.
  2. Refresh the metadata to pull the latest schema. You can do this by navigating to the OData Connector, selecting your OData service, and clicking on the Update button.imagem.png
  3. After refreshing the metadata, check your domain model in Mendix to ensure that it now reflects the updated schema from the OData service.
  4. If the entities do not automatically update, you may need to manually update them. This involves ensuring that any new fields or entities are correctly represented in your domain model. Sometimes you need to delete and drag drop again to the domain model.

 

 

Check the official documentation: https://docs.mendix.com/refguide/consumed-odata-services/

 

Best Regards,

Ricardo Pereira

answered
0

Hi Stevenson, 

First check if you consume the correct Odatafeed from the datahub. If you have multiple environments you could probably consume a Odatafeed from the Production environment; which is not yet updated with the new Odata structure.

Then if you are using the correct external odata feed then you could update your Odata config by clicking update (It will update the current connection) or switch then it will switch to another Odata environment.

Connection Tab

More info could be found here:

https://docs.mendix.com/refguide/consumed-odata-service/

 

Cheers, Martijn

 

 

answered