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

Community site session details

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

MapEntityDataSource and InsertEntityDatasource begin called in data entity?

(0) ShareShare
ReportReport
Posted on by 28

Hi

When MapEntityDataSource and InsertEntityDatasource begin called in data entity?

Please give me more shed on this 

I have the same question (0)
  • @rp@n Profile Picture
    28 on at
    RE: MapEntityDataSource and InsertEntityDatasource begin called in data entity?

    Thanks Gunjan

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: MapEntityDataSource and InsertEntityDatasource begin called in data entity?

    Hi Arpan,

    mapEntityToDatasource is used to map the staging field to target data source. For an example, in CustCustomerV3Entity,  this method is used to map EmployeeResponsibleNumber to MainContractWorker. In this entity, EmployeeResponsibleNumber is an unmapped field and MainContracWorker is marked with an access modifier "Private".

    pastedimage1609494433993v1.png

    insertEntityDataSource method is used to perform additional operations while inserting new records. In the same entity as mentioned above,  this method has been overridden to validate customer record if an invoice account is being mentioned (different from the customer account).

    pastedimage1609494514396v2.png

    Both of these will be executed during writing from staging to target.

  • @rp@n Profile Picture
    28 on at
    RE: MapEntityDataSource and InsertEntityDatasource begin called in data entity?

    Hi,

    Please anyone clarify me on this

  • @rp@n Profile Picture
    28 on at
    RE: MapEntityDataSource and InsertEntityDatasource begin called in data entity?

    Thanks Blue,

    Those methods ( MapEntityDataSource and InsertEntityDstaSource ) is called during Staging to Target also?

    Please give me more shed on this

  • Verified answer
    Blue Wang Profile Picture
    on at
    RE: MapEntityDataSource and InsertEntityDatasource begin called in data entity?

    Hi @rp@n,

    Please check this entity method called sequence:

    axatoz.wordpress.com/.../

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,340

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 640 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans