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, ...
Suggested Answer

List of method calls while exporting data using Data Entity Export so that I can write my own logic in D365 FnO

(0) ShareShare
ReportReport
Posted on by 10

Hi all,

At the time of exporting Data Entity in D365 FnO through Data Management I want to Pass range through code.

Please suggest where I write code in Data Entity.

Its a customize data entity Base Datasource is CustTable and this base Data source I nested CustTrans Table and in this CustTrans table AmountCur Field I want to pass range using x++ code AmountCur>0

I have the same question (0)
  • apa Profile Picture
    8,284 Moderator on at

    I have moved this to the D365 Finance forum.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Khan,

    you can refer to some standard data entities on how to apply ranges, for eg. you can see in the below example, how HCMWorker table is nested with HCMEmployment table and using a range "EmploymentType" with the value as "Employee". This will result in extracting only Employees from the HCMWorker table.

    pastedimage1571975123833v2.png

    about adding methods to a data entity, have a quick read on https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/design-best-practices

    https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/data-entities/data-entity-computed-columns-virtual-fields

  • KaamranKhan Profile Picture
    10 on at

    I know how to pass using Data sources range but using a code I need to do it. Because I need to write other logic also

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Where / when would you want this code to run? Could you share your business requirement?

    If you use the entity in x++ you can use a select statement for the data entity, and provide range there.

    In OData call the range is defined by the caller. In data management project the range is defined in the data project.

    And, of course all ranges defined in the entity metadata are always respected.

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at

    If you are looking list of methods then  There are various methods get called while exporting data such as mapdatasourcetoentity, postload etc...Add your breakpoint in one of these methods and you can step through and see entire call stack.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    In one of the earlier discussed thread below sequence is shared by Martin, take a look at that

    community.dynamics.com/.../data-entity-methods-execution-sequence

  • Suggested answer
    Pedro Tornich Profile Picture
    955 on at

    You can add ranges in the data project and this ranges are stored in a container field on the data project record.

    Find where this field is used and then you will find where to put your logic.

    Please, check my answer on this other thread for an example on how to change data project ranges through code before executing the project.

    https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/368072/data-management-framework-export-limit

    Your scenario seems to be different, but I hope it helps.

  • KaamranKhan Profile Picture
    10 on at

    Sir I want to pass range on Data Entity methods and this range should work at the time of Exporting Data using that Data Entity

    For example: In CustTrans Table and AmountCur Field I want to skip all the values those are less than Zero or Zero

    Please give me example

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans