Currently, a common Mendix best practice involves creating a sub-microflow to retreive an object by a certain key (or attribute) and return it or create it if it doesn't exist and return it.
This pattern appears repeatedly in many applications, adding extra steps and microflows to maintain. And often for developers that are relatively new to Mendix, you can even see a duplication of Microflow code as the Retrieve and Create actions both return a different variable name and if not handled through a sub-microflow the logic is duplicated.
Proposal:
Add a dedicated "RetrieveOrCreate" action to the Microflow Toolbox.
This action would:
Why this matters:
By providing a native RetriveOrCreate action, Mendix devs can build apps more efficiently while reducing repetitive tasks.
And if possible, provide it for Nanoflows too.
Please vote for this feature if you like it, thanks!
i like the idea to have a RetrieveOrCreate action to avoid having to create a sub microflow for all my Retrieve or Create needs, this would make coding easier and microflows better readable.