the caf2code press
Quick Tip: How to Refer to Custom Labels in D365FO
This is one of the simplest tips you’ll see on here but it is really good to know if you are new or just haven’t come accross the specific syntax. When creating custom labels, you cannot refer to them like you would system labels i.e. @syslabel123.
Instead, you have to refer to the name of your custom label file and then the label ID within that file like this:
[ DataMemberAttribute('myBooleanVariable'), SysOperationLabelAttribute(literalStr("@LabelFile:LabelID")), SysOperationGroupMemberAttribute('Group1'), SysOperationDisplayOrderAttribute('1') ]
That’s it!