Notifications
Announcements
No record found.
Hi,
When should this method be used?
From what I understood it gets called after the records have been actually inserted. So if I want the insert to an entity to fail if code inside this method throws errors, it won't fail the insert?
No, this method isn't used for a validation. You wan't to validate data of a record before you save it, not to run validation after everything was already saved.
Hi Martin,
What are examples to use this method for?
And what's the difference between mapEntityToDataSource
When to use each one?
I think you might refer to the below article for postTargetProcess:
"This method is automatically called by the DMFEntityWriter class in the end of processRecords() method when all records are transferred from staging to target"
community.dynamics.com/.../ax-7-process-the-data-after-data-entity-import
mapEntityToDataSource from my point of view is more for after the record is inserted into entity DS. I remember this one is more for Virtual field logic. Please correct me if I'm wrong
Regards,
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 592 Most Valuable Professional
André Arnaud de Cal... 478 Super User 2025 Season 2
BillurSamdancioglu 305 Most Valuable Professional