# Codeunit associated with table/form

**URL:** <https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383>\
**Category:** User Forum\
**Created:** [October 11, 2011, 8:23am UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383 "2011-10-11T08:23:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manjul](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Manjul](https://www.dynamicsuser.net/u/Manjul)\
**Post date:** [October 11, 2011, 8:23am UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/1 "2011-10-11T08:23:43Z")

</div>

Dear All,

Can anyone tell me from where i can know which codeunit is associated with the table or form.

Regards

Manjul

---

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [October 11, 2011, 6:14pm UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/2 "2011-10-11T18:14:31Z")

</div>

Standard avaliable then no.

You need to customize that.

---

<div class="post-metadata">

**Author:** ![amol\_salvi](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@amol\_salvi](https://www.dynamicsuser.net/u/amol_salvi)\
**Post date:** [October 12, 2011, 5:58am UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/3 "2011-10-12T05:58:29Z")

</div>

Hi,

This is basically you need to debug or using code covergae you can find which codeunit is running behind the table/forms.

---

<div class="post-metadata">

**Author:** ![Ricsss](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@Ricsss](https://www.dynamicsuser.net/u/Ricsss)\
**Post date:** [October 12, 2011, 6:23am UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/4 "2011-10-12T06:23:30Z")

</div>

1. DataItem

2. Variables , Global and Local

3. Functions from other objects used. (so, their DataItems, Variables, and objects itselves.)

---

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [October 12, 2011, 7:40am UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/5 "2011-10-12T07:40:59Z")

</div>

There are many codeunits which are called in multipe table or form, to validate the data.

So you cannot find a single codeunit being used for a single functionality.

---

<div class="post-metadata">

**Author:** ![Ricsss](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@Ricsss](https://www.dynamicsuser.net/u/Ricsss)\
**Post date:** [October 16, 2011, 1:03pm UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/6 "2011-10-16T13:03:59Z")

</div>

> [@](#):
>
> There are many codeunits which are called in multipe table or form, to validate the data.
> 
> So you cannot find a single codeunit being used for a single functionality.

which i agree to this too.

---

<div class="post-metadata">

**Author:** ![pereira.rfc](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@pereira.rfc](https://www.dynamicsuser.net/u/pereira.rfc)\
**Post date:** [September 3, 2014, 4:01pm UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/7 "2014-09-03T16:01:57Z")

</div>

In fact you can, since the moment you are in the form in designer mode, imagine that is a button with drop down menu, just right click and choose “Menu Items”, new window will show you which RunObject is associated to the function you want.

Cheers

---

<div class="post-metadata">

**Author:** ![George\_Love](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@George\_Love](https://www.dynamicsuser.net/u/George_Love)\
**Post date:** [September 3, 2014, 4:54pm UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/8 "2014-09-03T16:54:52Z")

</div>

I think what Amol was saying is that there’s no 1::1 relationship between objects (forms, pages, tables, etc.) and the codeunits they employ. You can’t say that for every page there’s a related codeunit, for example.

And, using the examples given so far, it is fairly straight-forward to determine which codeunits are defined as variables in one form or another within a given object. But, you’ll need to inspect code, either visually, or using codecoverage and/or debugger to determine all of the codeunits that run from any given action on a form, page or whatever.

---

<div class="post-metadata">

**Author:** ![archer89](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@archer89](https://www.dynamicsuser.net/u/archer89)\
**Post date:** [November 22, 2015, 9:42pm UTC](https://www.dynamicsuser.net/t/codeunit-associated-with-table-form/33383/9 "2015-11-22T21:42:47Z")

</div>

hi,

what you are searching for is a “where used” tool.

there are 2 third party tools you can use (not for free):

idyn object manager advanced

statical prism

also follow [https://community.dynamics.com/nav/b/navvanvugts/archive/2010/02/28/34-where-used-34-as-simple-as-you-can-get-it](https://community.dynamics.com/nav/b/navvanvugts/archive/2010/02/28/34-where-used-34-as-simple-as-you-can-get-it)
