reading data from microflow in react

0
does any one know a way so i can read data from microflow in pluggable widget react ?
asked
3 answers
1

You can use datasource property type in widget xml which will allow you to select the Microflow/Nanoflow/...

Refer below

https://docs.mendix.com/apidocs-mxsdk/apidocs/pluggable-widgets-property-types/#datasource

<property key="data" type="datasource" isList="true" required="false">
            <caption>Data source</caption>
            <description />
</property>

answered
0

Not the most fancy solution, but since the pluggable widget API is indeed still missing this feature; Load the Mendix Client API within your pluggable widget. Use the mx.data.action API to call a microflow and the callback function it comes with to read the output of this microflow.

Good luck!

answered
0

Another way of handling this situation is to use an attribute property. The microflow should set an attribute value of the context object and the widget responds accordingly.

answered