What is the lifetime of the an object of an entity ? I mean if I do not commit the object in database and just create it and return it via microflow when will that object get destroyed if I don’t destroy it explicitly ?
The Mendix object will be removed once its not used anymore. So if you were to move to a page that doesnt use it, or your microflow transaction ends.
Here is the documentation on transient objects and garabage collection in Mx7.