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

DataAreaId and entities

(0) ShareShare
ReportReport
Posted on by 152

In my report , when I select a record from CustInvoiceTable, then I need to get the address of the entity of that record from the Organization Administration-organisation-legal entities.

Where theprimary address is yes.

The address datasource is dirPartyPostAddressView.

CompanyInfo is the table which stores the name and DataArea of the legal entity and DirPartyTable.name stores the name of the entity.

Could you give me a code or relation

Between :

1)CustInvoiceTable and CompanyInfo tables

2)CompanyInfo and DirPartyTable

3) dirPartyPostAddressView and DirPartyTable

 

I have the same question (0)
  • Verified answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Hi,

    is this question about Dynamics AX or Dynamics 365 for Finance?

    If you are talking about D365, I suggest you look at the existing FreeTextInvoiceEntity.

    Normally, for reports, companies are interested in the posted invoices. Those you will find in CustInvoiceJour table. CustInvoiceTable is just a "journal" for inserting invoice data. But the actual posted invoice (that also goes to your ledger) is in CustInvoiceJour/CustInvoiceTrans, and SalesInvoiceHeaderEntity/SalesInvoiceLineEntity.

    Anyway, about your question.

    Relation between CustInvoiceTable and current company is CustInvoiceTable.DataAreaId = CompanyInfo.DataArea

    CompanyInfo actually extends DirPartyTable (via DirPartyTable - DirOrganizationBase - OMInternalOrganization so you have all the fields of DirParty table available in CompanyInfo buffer.

    DirPartyPostalAddressView and DirPartyTable are related via DirPartyPostalAddressView.Party = DirPartyTable.RecId

    You can find this information by studying table relations and table hierarchies in AOT, as well as using the cross references tool (right click object in AOT -> View references).

  • PrachiGupta97 Profile Picture
    152 on at

    Hi,

    This is for D365. I am creating a custom report for free text invoice.

    Could you tell me what is a Journal?

    What is companyinfo buffer?

    Thank you so much for your help!

  • nmaenpaa Profile Picture
    101,162 Moderator on at

    Hi,

    it seems you have some new questions. Please create a new discussion for every question.

    Your original question was related to DataAreaId and entities and you have marked the answer as verified.

  • nmaenpaa Profile Picture
    101,162 Moderator on at

    And I recommend you to study the out of the box Free text invoice report, it will help you find most of the data that you need on your custom report. For example, it contains the information of the sender company.

  • nmaenpaa Profile Picture
    101,162 Moderator on at

    Moved to D365 Finance forum.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 422 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans