Autocommit associated objects error

0
Hi there,   When deploying an app to the cloud, I've noticed an issue with associated child objects not being committed when the parent object is committed (this error doesn't occur when running locally):     Are the autocommits not supported on cloud deployments? Should they be committed separately?   Thanks, Liam
asked
1 answers
2

Hi Liam,

 

In a Microflow, yes. When under a standard Save button on a page, no. Also, first, commit the Object from the Entity where the association started and, after that the Object where the association ended.

 

This is when your Domain Model is right. Review the direction of the association in the Domain Model when it doesn't make sense.

 

For example, first commit the OrderLine then the Order. The autocommit occurs if you commit the Order before the OrderLine.

 

 

Go Make It

answered