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!
Caf2Code is a Microsoft Solutions Partner specializing in Dynamics 365 Finance & Operations, Power Platform, and Power BI. Originally published October 20, 2021; restored to caf2code.com in 2026.