Hi Jeremie,
Based on my understanding:
Check if the following fixes your problem:
I am not sure from you description, but i believe you are expecting the templates to be moved from one Mendix environment to another by doing a deploy of a Mendix package.
You are aware that the templates are stored in the database and not as part of the Mendix model? This means that templates will not be moved to another database automatically by doing a deploy. You need to either recreate the templates on the other server, or for example do some import/export routine you created yourself, or a database restore.
It appears to me that your project contains custom code that uses MxModelrefelction to create mail templates. That is pretty complex and hard to help you with remotely.
Some quick hints:
Could it be the case that the association name or module name in the retrieve does not match the exact name of the association in your domain model? Maybe a developer did a name change?
Or maybe you need to do a refresh of MxModelReflection first?
Hi Jeremie,
in addition to Nirmalkumar's answer here a screenshot of our setup in the ASU:
Our retrieve of the reference is like this:
Hi Michiel,
No, they are created in design time so once we deploy the package the templates should be created again.
In the meantime I did find a technical mistake from our side in the creation of those templates. (something to do with not finding a needed MxObjectReference)
We retrieve them with this activity:
[CompleteName='ModuleName.Entity1_Entity2' and Module='ModuleName']
It’s there that it goes wrong. Do you have an idea on how to retrieve the said reference?
Hi All, thank you all for the help. We did it with a combination af all your answers :)