Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

The Record datatype

Posted on by 10

Hello All,

I'm very confused with how the Record Datatype works, and have a few questions. 

When a variable is declared as a Record datatype it is also associated with a particular table. I'm assuming  the variable (of Record type) is meant to hold 1 record of a table,                                      and not multiple record at the same time.

Let's say (for example) that GenJnlLine is a variable of RECORD datatype associated with  table 81 "Gen. Journal Line" (temporary property is set to false)

Now does GenJnlLine point to table 81 like a pointer? or does it point to a copy of table 81?

Does GenJnlLine point to the table or a record in the table?

Also, I have seen statements like below (REC being the system variable)

GenJnlLine := rec

What is the := operator do in this case?

What if the Temporary property of the above variable was set to TRUE, how would it change anything?

If someone can help demystify the Record datatype, it would be much appreciated.

Thanks.

  • RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: The Record datatype

    Check this out!!

    community.dynamics.com/.../record-data-type

  • raelhefn Profile Picture
    raelhefn on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans