web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    121 on at
    RE: Explanation about RecordRef

    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
    RE: Explanation about RecordRef

    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
    RE: Explanation about RecordRef

    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,828

#2
Sumit Singh Profile Picture

Sumit Singh 2,617

#3
YUN ZHU Profile Picture

YUN ZHU 1,861 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans