Take a look at this. this achieves the similar to what you need. https://community.mendix.com/link/space/microflows/questions/93136
There is no direct mendix functionaly AFAIK