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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting all label IDs for a label file

(0) ShareShare
ReportReport
Posted on by

Do you know a way for reading all the labels id in DAX 7? I need to get all LabelsId of the specific label file

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rudi Hansen Profile Picture
    4,079 on at

    If its one label file you need data from, then just find the label file and get the information from it.

    This is for instance a label file: C:\AOSService\PackagesLocalDirectory\ApplicationSuite\Foundation\AxLabelFile\LabelResources\en-us\AccountsPayable.en-US.label.txt

  • Suggested answer
    PA-22040759-0 Profile Picture
    6,194 on at

    Here is a small example loading all labels from the SYS label file:

    public static void main(Args _args)
    {  
        info ("Starting");
            
        ClrObject labels = new ClrObject("System.Collections.Generic.Dictionary`2[System.String,System.String]");
                
        labels = Microsoft.Dynamics.Ax.Xpp.LabelHelper::GetAllLabels('SYS', System.Globalization.CultureInfo::CurrentCulture);
    
        ClrObject labelsEnumerator = labels.GetEnumerator();
        while(labelsEnumerator.MoveNext())
        {
            ClrObject keyValuePair = labelsEnumerator.get_Current();
    
            var currentlabelId = keyValuePair.get_Key();
            var currentTxt = keyValuePair.get_Value();
    
        }
        info ("Done");
    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans