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, ...
Suggested Answer

how to add code on entity .

(0) ShareShare
ReportReport
Posted on by 1,836
I am working on  the entity name projectEntity having table projectstaging ,what i need to do is when the data is to be exported using entity there the value of project id is there  and it populated and the same value is pass to project contract id , what i need do is code on entity so if there is value in contract id available then it should take the value of contract id  else the value of project id is pass to the contract id .can any one plz guide me on this ,  i have not done this before .
 
thanks ,
Regards
Dinesh
I have the same question (0)
  • Suggested answer
    Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi Dinesh,
     
    Maybe create an extension for this method "MapDatasourceToEntity" and put your logic there about the contract and the project. Let us know if it works.
     
    Also please make sure to close your other threads and verify answers.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Martin Dráb Profile Picture
    239,449 Most Valuable Professional on at
  • Dineshkarlekar Profile Picture
    1,836 on at
    hi ,
    thanks for reply ,
    i have made extension and code on post load method of entity my code is below.
    [ExtensionOf(tableStr(ProjectEntity))]
    final class DTProjectEntity_Extension
    {
        public void postLoad()
        {
            next  postLoad();
    
            if(this.ProjectContractID == '')
            {
                this.ProjectContractID = this.ProjectID;
            }
        }
    }
     
     

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 March Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 564

#3
CP04-islander Profile Picture

CP04-islander 396

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans