Calling a microflow with more than one parameter from a widget

I want to call a microflow which is expecting multiple parameters to be passed to it from a widget, as a part of my requirement I need to pass two objects of different entity to a microflow from my custom widget. Is this currently possible? If not can we expect it in the near future...
1 answers

I do not believe this is currently possible.

There are a few possible workarounds:

  • Create a reference between the 2 entities you need to access, so you can retrieve one from the other in a microflow
  • Create a non-persistable object that references both objects that you need, and retrieve them in a microflow.
  • Pass a list of objects (2+ of the same kind), which I suppose could be inherited from the same base object, allowing you to use an inheritance split to get the actual 2 objects you need