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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s