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 :
Finance | Project Operations, Human Resources, ...
Answered

Computed columns and Virtual fields on Data entities

(0) ShareShare
ReportReport
Posted on by 451

Hi All,

Computed column's value is generated by an SQL view computed column and during read, data is computed by SQL and is fetched directly from the view. Does this mean that query is stored in backend once we synchronize the new computed column to db and it references the same for every read.

Also, for virtual column why do we prefer postLoad method.

Thanks.

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Hi AX Dev,

    yes, computed columns are synchronized to the database during db sync. 

    Virtual fields and postLoad method are slower, but you can use x++ code and have all the benefits of running the business logic within the actual D365 system. For example you can call existing methods and don't have to cram everything in one T-SQL statement.

  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    Yes,

    Especially read the writings of Nikolas and Joris. In fact, they are all valuable, but they are not exactly relevant to our topic.(It would be useful to read Joris's link.)

    community.dynamics.com/.../why-computed-column-has-to-be-string

    I don't quite understand the second question but postLoad method can be used for mapping data fields to virtual fields

    l-->

    this.FullName = this.LastName + ", " + this.FirstName;

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans