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

Notifications

Announcements

No record found.

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
    133 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans