Non-persistent object parameter missing from microflow

0
I have a dataview with the data source set to a microflow which returns a non-persistent object. The object is present in the dataview because it sets the form fields and the visibility logic works. In the dataview I have a button which calls a microflow with the object of the dataview as a parameter, and also the object of the parent templategrid as another parameter. When I run the app and click the button, breaking on the first action in the microflow, I check the "Variables" list, and although the parent templategrid object is there, the dataview object is missing (not "empty", but actually not in the list). Might this be something to do with the object getting disposed too early? If so what can I do about it?
asked
2 answers
0

You have a template filled with Parent. Within the template you have a dataview that shows one the parent's non-persistant children. Within that dataview you have a button calling a microflow passing both parent and child. You describe that while debugging you only see Child and Parent is not in the list. This suggest that Parent is not (or no longer) in your microflow. Check if Parent is still in your microflow as parameter.

answered
0

Ok, so I have reproduced the issue in a new project and it still happens. I can share the mpk, but here is a brief description of the project in case it make it clearer.

2 non-persistable entities. These are each populated by a microflow, Entity1 has multiple rows and is displayed in a template grid, Entity 2 is a single object created in a data view embedded in the template grid.

The problem occurs in the microflow behind the button.

Having reconstructed this, I think what is happening is that the Entity2 object is getting dropped each time it is created in each record in the Entity1 grid. I will try throwing in a temporary association and access it that way.

answered