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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Fill unmapped fields in data entity

(0) ShareShare
ReportReport
Posted on by 616

Hi,

I created a new entity to export several data from smmBusRelTable. Also I try to export some values with this entity that are not part of smmBusRelTable. So I create unmapped fields therefore. But I can't fill them in methode mapDataSourceToEntity...

I thought I could do that in this methode but the debugger didn't stop in this methode anyway. So I think the methode will not be used yet? Do I have to make some setups to run through this methode?

In DMF I use this function:

pastedimage1610703178679v1.png

Hope, someone can help me...

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at

    First of all, decide if you want to create a computed column or a virtual field. Computed columns are more difficult to implement (you must write X++ code generating T-SQL), but they're more efficient. If you want a virtual field, which seems to be the case, populate fields in postLoad() methods.

    Also, don't forget that D365FO has documentation. You could have found the answer in Computed columns and virtual fields in data entities.

  • Christian Busche Profile Picture
    616 on at

    Martin,

    thx for your reply...

    I take virtual fields, because I'm not familiar with the T-SQL syntax...

    I try to fill the fields there... And let you know the result...;-)

  • Christian Busche Profile Picture
    616 on at

    Martin,

    Thanks for the tip, it's the right place....

    But then what is the method mapDataSurcetoEntity responsible for?

  • Verified answer
    Martin Dráb Profile Picture
    237,892 Most Valuable Professional on at

    mapDataSourcetoEntity() is used on import, not export.

    I think it's used when the system tries to find existing records to update.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans