Skip to content
Quick Tip

Quick Tip: How to Refer to Custom Labels in D365 F&O

Caf2Code October 20, 2021 2 min read

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.

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.

Working on Dynamics 365 or Power Platform?

Caf2Code is a Microsoft Solutions Partner. Whether it is F&O development, security, reporting, or an end-to-end implementation, our team can help.