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

Modifying System fields for data entity export

(0) ShareShare
ReportReport
Posted on by
I have a one requirement where I want to modify the dataAreaId when data is exported out using DataEntity in finance and operation. I am aware of the fact that we can acheive it using Virtual fields but I would like to know if there is a way to modify dataAreaId value in postLoad function. I have tried following ways to do but doens't seems to be working.
 
/// <summary>
/// Replace country region token in formatted address.
/// </summary>
public void postLoad()
{
    next postLoad();
    {
        RetailVendVendorV3Entity vendorV3Entity = this;
        vendorV3Entity.overwriteSystemfields(true);
        vendorV3Entity.(fieldNum(RetailVendVendorV3Entity, DataAreaId)) = strFmt('%1Custom', curExt()); // Doesn't work
        vendorV3Entity.DataAreaId = strFmt('%1Custom', vendorV3Entity.DataAreaId); // Errors out saying Cannot modify ReadOnly fields
        vendorV3Entity.overwriteSystemfields(false);
    }
}
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 622

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 553 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans