web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Resource file with only labels

(0) ShareShare
ReportReport
Posted on by 100

Dear community,

I want to create a Resources-folder containing a file with only labels which will be used throughout my Microsoft BC extension.

Which is the best way to handle resource-files? Is it in a codeunit-snippet? If so, how do I access the variables in the other modules?

My scenario:

I tried creating a al-file named "labels" and placed it in a folder (\res). In the "labels.al", i used the codeunit-snippet and defined variables as labels.
However, I can't/don't know how to access these labels in the other modules of my extension.

Thank you for your help.

  • Suggested answer
    JAngle Profile Picture
    161 on at

    I don't believe this is achievable. You would need to work it differently as BC uses object oriented DEV. Label is a variable type and not an object type. You could create a codeunit which you call to determine what label you need.

    If you check the base app you will notice most objects that use labels just have local variables for them.

  • Marcus Halbauer Profile Picture
    100 on at

    Hello Josh,

    Thank you very much for your reply. I will need to rethink about this then.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 631 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 409 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 222 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans