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.

  • Verified answer
    P V Sarath Profile Picture
    130 on at
    RE: Explanation about RecordRef

    Thank you for your Explanation.

  • 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

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: Explanation about RecordRef

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

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans