Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Loop over all labels in label file

(0) ShareShare
ReportReport
Posted on by

I try to get   all label in certain label file, I try to use the function Microsoft.Dynamics.Ax.Xpp.LabelHelper::GetAllLabels , it returns only 500 labels even it has more than this number 

I try also the function Microsoft.Dynamics.Ax.Xpp.MetadataSupport::GetLabelFileContentStream, I face an error during the calling of the function , how can I get all label ids in label file ,also is there  a function to get the list of label files in the system ?

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: Loop over all labels in label file

    I am not aware if there is any standard function to retrieve all label IDs from a label file.

    You can simply open your label file in notepad and find all your label IDs there.

  • Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Loop over all labels in label file

    Please tell us what you're trying to achieve from a business point of view. We can't choose the best technical solution for a scenario without knowing the scenario itself.

  • maram fraij Profile Picture
    maram fraij on at
    RE: Loop over all labels in label file

    My main question is how to loop over all labels in certain label file ! I am not asking about the error I face I only included my trials

  • Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    RE: Loop over all labels in label file

    Unfortunately, it's very difficult to address your problem if all you tell us about it is "I face an error". Please shows us your code and tell us what error you're getting and where.

    I believe this question is about F&O, therefore I'm going to me move it from Dynamics AX Forum to Dynamics 365 Finance Forum.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans