How to call microflow in pluggable widget?

Hi, I am creating a pluggable widget. I need call a mircoflow when click a html element. In customized widget(Dojo based), we found  api can be used. I saw some forum post say: this api will be deprecated.    Where can i find the correct way api which can be used in pluggale widget? I have readed all page about pluggable widget in docs.mendx. If have sample codes, it will be perfact!                
3 answers

According to the current documentation, you have already found the right function.

(DOC with Examples)

Maybe you have read, that the mx.ui.action function is depricated and can be removed by an update and not the

(DOC with examples)


Hi Haiji,

You can now use the action property in the xml (type = action). When using this, the user can choose what to do: open a page, call a microflow, nanoflow, etc. 

In your code, you can do something like:

if (microflowProp && microflowProp.canExecute) {



Hope this helps!


Hi @Johan Munneke

I Folow the guide doc to create a pluggable widget. but the action prop aways empty . could you please help have a look?

 <propertyGroup caption="Events">
            <property key="onChangeAction" type="action" required="false">
                <caption>On change</caption>

export interface InputProps {

    value: string;

    onChangeAction?: ActionValue;


export class TextInput extends Component<InputProps> {

 private readonly handleChange = this.onChange.bind(this);

render(): ReactNode {

        return <input type="text" 


        value={this.props.value} />;


private onChange(event: ChangeEvent<HTMLInputElement>) {


 alert(JSON.stringify(this.props));  // HERE, It aways dispay {value:”xxx”}, have no prop of onChangeAction 

 if (this.props.onChangeAction) {