Trigger a microflow with two input parameters by a custom widget

1
Is it possible to trigger a microflow which has two input parameters by a custom widget? I am building a custom widget and what I noticed is that the code snippet that triggers a microflow in the custom widget can only accept one input parameter.  Is there a way to walk around this issue?
asked
2 answers
3

> custom widget can only accept one input parameter.

This is correct.

> Is there a way to walk around this issue?

Yes. Say you want to pass two object of entities Foo and Bar. Create a new entity FooBar and associate it 1 to 1 with both Foo and Bar (or many to 1). Then pass the FooBar object to a microflow and retrieve the associated objects Foo and Bar. This is exactly how the drag and drop widget works.

-Andrej

answered
0

Thanks for your quick reply.

answered