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

**URL:** <https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463>\
**Category:** How do I?\
**Created:** [March 8, 2024, 6:01am UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463 "2024-03-08T06:01:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Profound5753](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/profound5753/32/6870_2.png) [@Profound5753](https://community.weweb.io/u/Profound5753)\
**Post date:** [March 8, 2024, 6:01am UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/1 "2024-03-08T06:01:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 8, 2024, 1:42pm UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/2 "2024-03-08T13:42:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Profound5753](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/profound5753/32/6870_2.png) [@Profound5753](https://community.weweb.io/u/Profound5753)\
**Post date:** [March 8, 2024, 4:32pm UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/3 "2024-03-08T16:32:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [March 8, 2024, 6:43pm UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/4 "2024-03-08T18:43:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 8, 2024, 7:13pm UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/5 "2024-03-08T19:13:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 20, 2024, 9:16am UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/6 "2024-03-20T09:16:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Profound5753](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/profound5753/32/6870_2.png) [@Profound5753](https://community.weweb.io/u/Profound5753)\
**Post date:** [March 20, 2024, 2:50pm UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/7 "2024-03-20T14:50:04Z")

</div>

Fantastic!!! Thank you so much!!!

---

<div class="post-metadata">

**Author:** ![Profound5753](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/profound5753/32/6870_2.png) [@Profound5753](https://community.weweb.io/u/Profound5753)\
**Post date:** [April 3, 2024, 12:28am UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/8 "2024-04-03T00:28:27Z")

</div>

> [@aurelie](#):
>
> For javascript, inside a component: `context.component.methods.executeWorkflow(workflowId, params)`

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)

---

<div class="post-metadata">

**Author:** ![Profound5753](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/profound5753/32/6870_2.png) [@Profound5753](https://community.weweb.io/u/Profound5753)\
**Post date:** [April 3, 2024, 4:52am UTC](https://community.weweb.io/t/within-component-how-to-get-the-updatevariable-or-executeworkflow-ids-like-we-do-for-global-vars-and-wfs/7463/9 "2024-04-03T04:52:01Z")

</div>

Resolved
