Within Component, how to get the updateVariable or executeWorkflow IDs, like we do for global Vars and WFs?

How do we see the IDs for the component variables and workflows similar to global workflows/variables?

At the moment, there is no easy UX way to have the component variable id, but you can just click on the explorer en JS mode to see it.
Please be carefull that the method to call is different for a local variable than for a global variable context.component.methods.updateVariable vs wwLib.wwVariable.updateValue

There is no way to call an internal workflow from a javscript code at the moment, but id is available the same way than the global one.

Okay. Great. The update variable works fine. I haven’t been able to get the executeWorkflows() to work. Any thoughts? The prefix path is the same as a component update variable.

I’ve also wondered how to Execute the Workflow Triggers programmatically.

As i said before, its not possible at the moment.
I am planning to add the feature soon, as the same time as exposing the workflow to dropzones.

1 Like

Since the new release, it is now possible to execute component workflow from dropzone and in javascript.

For javascript, inside a component: context.component.methods.executeWorkflow(workflowId, params)
The workflowId is now visible for internal workflow as well if you have dev info toggled.

2 Likes

Fantastic!!! Thank you so much!!!

When I call this my component variable is not updating. Should I be updating based on the event?

For javascript, inside a component: context.component.methods.executeWorkflow(workflowId, params)

Resolved