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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How can we update the label description against label id

(0) ShareShare
ReportReport
Posted on by 10

In AX 2021 SysLabelEdit class is there to modify label. As per my analysis , LabelBulkEditor class is used modify the label . i have tried with below code its not working. Any suggestion to create and update label files against label id

LabelBulkEditor labelBulkEditor = new LabelBulkEditor();

LabelType labelType = SysLabel::labelId2String(nameid
, "ja");
if(labelType)
{
SysLabel::
labelBulkEditor.modify("SYS123", "XXX", "YYY");
Info("done");

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at

    Hi VidhyaM,

    Can you explain for which application or product you asked your question? The title mentions D365, but in the text you mention AX with a year number which was never a product. It might be a typo that you mean 2012 instead of 2021.

    Can you also tell what you want to achieve using the coding?

  • VidhyaM Profile Picture
    10 on at

    Hello Andre

    Thanks for your reply .. Apologize for typo ie., AX 2012.. I need to update labels description against label id via X++

  • Deepak Agarwal Profile Picture
    9,039 on at

    Hi Vidhya,

    In system, you will find different label files for each language (for standard labels) which you can not modify. If this is a custom label file, open the respective language file and find the label, you can make changes there. The code sample you mentioned, seems to do a bulk update which  I don't recommend.

  • VidhyaM Profile Picture
    10 on at

    Thanks harry. yes i have also understood that its not recommended way.. but its not possible to update manually for more than 20k labels  

  • Martin Dráb Profile Picture
    239,660 Most Valuable Professional on at

    I wonder if X++ is really the best tool for it.

    If I remember it correctly, AX 2012 uses .ald files to store labels in version control. If you want to do changes to it, you just need a text editor (such as Notepad++) or any programming language that can manipulate text. Maybe this ERP system isn't the best text editor available. :-)

    By the way, please use Insert > Code (in the rich formatting view) when you want to paste source code to this forum.

  • André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at

    Hi VidhyaM,

    What is the update about which you want to apply to 20K labels?

    PS: Moved to the Dynamics AX forum.

  • VidhyaM Profile Picture
    10 on at

    i need to modify label description against label id in particular region specific like (en_us, ja)

  • André Arnaud de Calavon Profile Picture
    305,465 Super User 2026 Season 1 on at

    Can you also tell why you need to have descriptions changed? What is currently blocking you if you don't have the descriptions updated?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 671

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 621 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 589 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans