web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to locate a code based on a label in AX 7

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

In AX 2012, when trouble shoot the error, we can find out the label for the error message from Tools -> Label Editor. Once we got the label ID, then we can search the AOT to locate the code where throw the error/warning. How can we do the same in AX 7?

Thanks,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    We still have Label search and Cross-references in AX, have you checked that?

    community.dynamics.com/.../209923

    You can create cross-references as part of the Build:

    ax.help.dynamics.com/.../build-operations

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Yuji,

    You can start searching labels by navigating in Visual Studio: Dynamics 365 > Find labels... (or Ctrl+R, Ctrl+L). When you found a label, right click the label or use Shift+F12 to find the references where this label is used.

    As part of a build, by default the cross-references are updated in Dynamics 365, so searching within the AOT is not required anymore.

  • Yuji Profile Picture
    4,131 on at

    But if I want to still search in AOT, how can I do that in AX7?

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Yuji,

    At the bottom of the Application Explorer you will notice two tab pages: "Metadata search" and "Application Explorer".

    Select "Metadata search" and enter the next statement for search within code:

    code:"some code"

    Without the keyword "code:" it will search element names and individual properties.

  • Verified answer
    Basheer17 Profile Picture
    2,720 on at

    Notepad++ gives fast metadata search results compared to the actual metadata search that we have in visualstudio. Refer axility.net/.../metadata-search-like-a-pirate for more info.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans