How to call a microflow from a Pluggable React Widget with parameters?

0
I have a pluggable React widget, however I want it when I press a button inside my React component, I want to send some data over from my React Widget to the microflow as a parameter, and then get the returned data from the microflow back to my React component. Is this possible?     
asked
1 answers
0

Sadly, that is not possible only using the Pluggable widgets API.

 

Pluggable widget API supports running microflows using the ActionValue type. Which is the same for all action types(Microflow, Nanoflow, Pages, ...). So, you can execute this action on button click. But, this API does not support changing parameters by the widgets it self, nor work with a return value.

You can achieve something similar to what you want by adding an attribute value from an object, which you then use as a parameter for the microflow. In the microflow, you can then call the Change object value on that object and set the attribute to the value you wanted to return and set the Refresh in Client. This will cause the widget to rerender with the return values of the microflow in the attribute.

If you can provide more info about your use case, I can help you further. Hope this helps.

answered