Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : gX0Mw/72CQUhaM5esP51a6

Label Extension D365FO

Sheikh Sohail Profile Picture Sheikh Sohail 6,125

Label Extension  D365FO



As We All know Label Extension is not available in D365FO with the same way we use to create form, Table and class Extension...


You can check the below screenshot Label extension option are gray/disable in menu.


What is the resolution?

There is way to create extension of Existing label files.
Add new label file like below image... In my demo  I am Creating Extension of Sys Label file. 
In Extension use Prefix of Existing Label File name then Add _Extension as Postfix



In my case file name was Sys_Extension. Now click on Add button and complete the wizard.


Select the Language is in use by Parent Label file and click on next ...



You can create new Label and override the existing one, For Demo purpose I have created Two Label @SYS456 which is New Label and  the second I created @SYS12 which is already Exists in SYS Label File... We Created this one to override the existing Label.




Now I have create a menu Item and assign the @SYS456 Label to Menu Items...




To handle Override case, I have created class for the verification...

class SLD_DemoClass
{

     
        public static void main(Args _args)
    {
   
        info(SysLabel::labelId2String2(literalstr('@SYS12'), 'en-US'));
        info(SysLabel::labelId2String2(literalstr('@SYS456'), 'en-US'));
    }

}





This was originally posted here.

Comments

*This post is locked for comments