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

Data Entity import method sequence, one method call for all rows

(0) ShareShare
ReportReport
Posted on by

Hello community,

I need to call method when importing data entity, but I need to call it once before any record imported, the data entity EcoResProductMasterEntity .

I saw similar posts about sequence of call but could not find what is the method which is called only once before or after data entity is finished running:

All the methods within data entity are called for every row

.

what did I miss? Is this the case that there is not single method which is called when data entity is initialized just before importing starts.
OData and Data Management both needed to handle one extra line of code we need to add 

I have the same question (0)
  • Suggested answer
    Pete Alberts Profile Picture
    3,546 on at

    Hi Volodymyr

    I have had that requirement a few times. But if you think about it enough, it does not really make sense. The code on the DE is for a single DE record. It has no knowledge of the batch job. I usually end up throwing an error on initializeEntityDataSource() or insertEntityDataSource() if some conditions are not met. Which is usually not necessary as the table validateWrite or validateField will fail, causing the entity to throw an error with an appropriate message. Or I communicate the requirements for a successful import to the client very clearly.

    That being said I remember that there was some sort of new method that you can override (or an attribute you need to specify) which will be called before a DMF job executes (still nothing for OData). But I was looking for it now and couldn't find anything. Maybe I was dreaming.

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 620

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans