# How to use js to get action

**URL:** <https://discuss.workflowgen.com/t/how-to-use-js-to-get-action/1917>\
**Category:** General WorkflowGen Discussion\
**Created:** [August 13, 2021, 2:43am UTC](https://discuss.workflowgen.com/t/how-to-use-js-to-get-action/1917 "2021-08-13T02:43:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![song](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@song](https://discuss.workflowgen.com/u/song)\
**Post date:** [August 13, 2021, 2:43am UTC](https://discuss.workflowgen.com/t/how-to-use-js-to-get-action/1917/1 "2021-08-13T02:43:15Z")

</div>

Now: use a hidden field to bind action.name  
Then use JQ select action.name  
Can I get it directly

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [August 13, 2021, 4:23pm UTC](https://discuss.workflowgen.com/t/how-to-use-js-to-get-action/1917/2 "2021-08-13T16:23:39Z")

</div>

Hi @song ,

If you’re using JQuery then what you’re doing is correct.  
If you want to use .NET you can retrieve it directly using CurrentWorkflowActionName

Eddy.
