# Event Before Action Menu Click

**URL:** <https://www.epiusers.help/t/event-before-action-menu-click/43401>\
**Category:** Epicor ERP 10\
**Created:** [March 15, 2018, 1:29pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401 "2018-03-15T13:29:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [March 15, 2018, 1:29pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401/1 "2018-03-15T13:29:30Z")

</div>

Is it possible to have an event run against a selection in the Action Menu?

I would like to check some data in a before event of the Print Sales Ack in Order Entry. Not sure if it is possible and also how to reference the selection in code if it is possible.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [March 15, 2018, 1:30pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401/2 "2018-03-15T13:30:17Z")

</div>

Check out the Before Tool Click event in the Customization Wizard.

---

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [March 15, 2018, 1:33pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401/3 "2018-03-15T13:33:48Z")

</div>

@josecgomez Thanks. I thought that might be it, but there was no option to select the tool click that I want to run against.

How can I find out what the name of the selection in the menu is?

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [March 15, 2018, 1:35pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401/4 "2018-03-15T13:35:48Z")

</div>

Use a MessageBox to figure out the name ofthe tool you want to fire on

```auto
MessageBox.Show(args.Tool.Key);

```

You’ll get a message box every time you click on someting… figure out what they Key is for the action you want and then you can do an IF args.Tool.Key==“MyToo”… do x y z

---

<div class="post-metadata">

**Author:** ![jkane](https://www.epiusers.help/user_avatar/www.epiusers.help/jkane/32/57624_2.png) [@jkane](https://www.epiusers.help/u/jkane)\
**Post date:** [March 15, 2018, 1:38pm UTC](https://www.epiusers.help/t/event-before-action-menu-click/43401/5 "2018-03-15T13:38:40Z")

</div>

> [@josecgomez](#):
>
> MessageBox.Show(args.Tool.Key);

Oh man! That is awesome. Thanks for the help Jose!
