Announcements
No record found.
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
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
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 16
GiacomoRovai 4
Douglas Noel 2