Skip to main content

Notifications

Announcements

No record found.

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");

  • André Arnaud de Calavon Profile Picture
    293,278 Super User 2025 Season 1 on at
    RE: How can we update the label description against label id

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

  • VidhyaM Profile Picture
    10 on at
    RE: How can we update the label description against label id

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

  • André Arnaud de Calavon Profile Picture
    293,278 Super User 2025 Season 1 on at
    RE: How can we update the label description against label id

    Hi VidhyaM,

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

    PS: Moved to the Dynamics AX forum.

  • Martin Dráb Profile Picture
    232,011 Most Valuable Professional on at
    RE: How can we update the label description against label id in D365

    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.

  • VidhyaM Profile Picture
    10 on at
    RE: How can we update the label description against label id in D365

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

  • Deepak Agarwal Profile Picture
    8,566 on at
    RE: How can we update the label description against label id in D365

    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
    RE: How can we update the label description against label id in D365

    Hello Andre

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

  • André Arnaud de Calavon Profile Picture
    293,278 Super User 2025 Season 1 on at
    RE: How can we update the label description against label id in D365

    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?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans