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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Explanation about RecordRef

(0) ShareShare
ReportReport
Posted on by 130

What is the difference between RecordRef and Rec, and how do we use the RecordRef  in AL. please share the example of Recordref in Al.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    Small explanation here but has an example of it in action to cement understanding: https://youtu.be/GwUx2Or4TFI

  • Suggested answer
    matthias_rabus Profile Picture
    160 on at

    The most important difference is that a Record is hard wired to a table when it is declared in the code, while a RecordRef can change its table during runtime, e.g. based on a setup table.

    Check this example from the docs:

    docs.microsoft.com/.../recordref-gettable-method

    The variable GLAcc is hard wired to „G/L Account“, while the RecRef variable is set to a table using the GetTable method.

    If you have a specific issue/question, just ask

  • Verified answer
    P V Sarath Profile Picture
    130 on at

    Thank you for your Explanation.

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans