Microsoft Dynamics AX 2012 R3 - Create a Lable by X++ Code

Hi guys

I want to create a Label Id by x++ Code instead of using Lable Editor. Can anyone help to me?

Regards

Example:

new SysLabel('en-us').insert('text', 'comment', 'XYZ');

hi martin,

i have tried above methods, there is no error but label not created

my scenario: find the label if not available then only create and assigned

If the exists no need for create label only assigned that label for the properties.

Regards