Skip to main content

Notifications

Announcements

No record found.

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 

  • Suggested answer
    Pete Alberts Profile Picture
    3,542 on at
    RE: Data Entity import method sequence, one method call for all rows

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,041 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans