AX / D365FO – Get label text in different languages

To get a label text in a specific language you can use labelId2String() method of the SysLabel class.

If you avoid to specify the language the method will use the default system Language

SysLabel::labelId2String(literalstr('@SYS1'), 'en-us'); //will show "Time transactions"

SysLabel::labelId2String(literalstr('@SYS1'), 'it'); //will show "Transazioni temporali"

Leave a comment