Using ID Column in Microflow

HI, Is there a way to use the ID column (automatcially created for an entity) in a Mendix microflow.  I would like to delete data from a huge table and like to perform this operation in asynchromous batches based on this ID. Any help in this regard is appreciated. Thanks, Aravind
2 answers

Community Commons module has a Java action called getGUID that will get the GUID for any Mendix object.    This would enable you to get the GUID for all the objects you would lke to delete.  However, as far as I know, there is not pattern to I am not sure this will be helpful in creating batches.  

In addition to the batch Java actions Mitchel mentioned, you could also use limit and offset in retrieves to create a batch processing capability.  See for more information on this.  You could create a microflow that deletes a certain number of these records and set it up as a Scheduled Event that runs periodically until all of the records you want to delete are gone.


Only option I know is using a Java action to extract this ID which using the function getID() for example:




But you could also use the community commons batch java actions in combination with a limit retrieve.

Hope this helps.