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.
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.
Thank you for your Explanation.
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
Small explanation here but has an example of it in action to cement understanding: https://youtu.be/GwUx2Or4TFI
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1