Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Correct entity method for setting default value during DMF import

(0) ShareShare
ReportReport
Posted on by
Hi team,
 
I have an entity which has 2 primary fields Date1 and ID.
As per requrirement, we now want to add default value to Date1 field when it is empty in the import template.
 
What is efficient way to do this? InitValue() or MapEntityToDataSource?
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,969 Super User 2025 Season 1 on at
    Correct entity method for setting default value during DMF import
    Hi,
     
    You can look at standard data entities for examples. The HcmPositionV2Entity is setting values using the methods insertEntityDataSource and updateEntityDataSource.
     
    The EcoResReleasedProductCreationV2Entity is probably more like your scenario to fill primary fields. In this entity the product number is set in the method InitValue.

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans