web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Data Events support for unmapped fields in D365 F&O Data Entity

(1) ShareShare
ReportReport
Posted on by 220
If there is a Data Entity is F&O, and it has a unmapped field in it. And if we are using Data Events in F&O, i know that the official documentation says that virtual fields are not supported. 
But, what if we populate that virtual field in the postLoad method of data entity. The Data Event trigger will run postLoad method of that data entity or not?
 
Thanks. 
  • Martin Dráb Profile Picture
    240,742 Most Valuable Professional on at
    It depends. If you have a record where no field has changed (you just want to change the virtual field), there will be no data event triggered and no postLoad() called.
  • Raj Borad Profile Picture
    1,588 on at
    Hi fshaikh,
     
    I just found some points regarding your question on the internet.
    • Virtual fields are not directly supported by Data Events in D365 F&O.
    • The postLoad method can be used to populate virtual fields, but this method does not trigger Data Events.
    • Data Events are triggered by changes to mapped fields in the database
    While you can use the postLoad method to populate virtual fields, this does not affect the Data Events directly. If you want to ensure that some logic is executed when a Data Event occurs, you should focus on the fields that are actually mapped and persisted in the database.
     
    public class YourDataEntity extends Common
    {
        public void postLoad()
        {
            super();
            // Populate the virtual field
            this.VirtualField = calculateVirtualField();
        }
        private YourVirtualFieldType calculateVirtualField()
        {
            // Logic to calculate the virtual field value
        }
    }
     
    Thank you,
    Raj D Borad
     
  • Waed Ayyad Profile Picture
    9,218 Super User 2026 Season 2 on at
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • fshaikh Profile Picture
    220 on at
     
    The Data event is triggered on the mapped field change. But the values of unmapped fields are coming empty, even though there is a logic written in PostLoad method to populate them. 
     
    Does it mean Post Load method do not run?
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 366

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 360 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans