How to create Mendix entity (ID) for externally created db-records?

0
Hi guys   We have a node web app using for creating db records to the Postgres database. When I try to open an inserted record I got the error that the entity ID is missing. 1) As read from other posts I understand that all the objects has this Mendix entity (ID.ShortID, Object_Sequence) this after creating another Postgres object, we have also to create this object, right?    Whereby: 2 - ID = new guid 3 - ShortID = ? 4 - Object_sequence = ?   Can anyone give us more information about the mechanism so that all the externally created records are also readable by Mendix?
asked
2 answers
3

Do you want to use the externally created objects in your mendix application?

There is a very high risk of breaking stuff and this is not recommended.

I think the easiest and clean solution would be the creation of a webservice in your mendix application that can be used by your other application to create the database objects. With this solution, you can use your mendix application to do all the database work and it will stay consistant, and the other app for generating all the needed data.

answered
2

Hi Enzo,

Never create records in the Mendix database outside of the control of Mendix, Mendix needs full control of it's own database. There many ways to integrate external data: reading from an external database, webservices, csv import, excel import etc. Use these instead.

answered