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, ...
Unanswered

Export all possible financial dimension values based on general ledger advanced rule structures

(0) ShareShare
ReportReport
Posted on by 35

Hi,

We have to design solution for integration scenario as desribed below.

Background:

We have an upgrade project from AX2009 to D365 F&O.

Client has 3rd party invoicing system, where big subset off all company purchase invoices are created and at the end of whole process invoices are sent to D365 F&O SOAP custom service endpoint.

So far nothing special, but there are complex workflows and validations in that external invoicing system and one of key features, from users perspective, are restricted lookups for financial dimensions based on possible financial dimensions values combinations provided from D365 f&o.

In previous version of AX possible financial dimensions values were inserted into intermediate database and then that external invoicing system pulled needed data from that database.

It was easier to fetch possible financial dimensions values in AX2009, becuase of less complex data structure in terms of financial dimensions.

We have designed whole architecture in terms of integration and I'm quite confident that it meets our goals with reasonable level of compromises 

One part, which I'm not sure enough, is fetching financial dimension combination values from D365 f&o.

Requirement:

Find good enough approach to list all possible financial dimension values based on general ledger advanced rule structures.

Current solution:

In our current thought we want to develop something like parser engine for advanced rule structures criteria values, transale that values into SQL understandable ranges (by this I mean splitting merged values stored in advanced rule structures criteria record into separate fields to enable filtering records by relation) and store them in additional D365 f&o table, then based on relation to standard d365 f&o financial dimension attribute value table we would fetch proper values.

Problem / Question:

We had some uncertainty regarding that solution - Are there any out of the box parser, which transaltes x++ ranges into that SQL uderstandable ranges? I think there should be, becuase Dynamics translates x++ select statements into SQL select statements somehow under the hood. I couldn't find any concreet docs or code regarding this. I found some AOT objects called like DimensionExpressionCriteria*, but I have to investigate that further.

Maybe somebody has more knowledge on that field, any suggestion or alternative solution would be appreciated 

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,053 Super User 2025 Season 2 on at

    Hi Kamil,

    For this requirement, I'm not a fan of using 3rd party invoice systems. The standard or an ISV solution embedded in Dynamics 365 would be easier as they can validate during data entry based on Dynamics 365 business logic.

    You are correct that all possible values are not stored in Dynamics 365. Only the combinations used on transactions are searchable in various dimension tables and views. The account structures and advanced rules are not stored in a way that it could be directly converted to SQL statements.

    Have you evaluated if it would be an option to call Dynamics 365 services during data entry? Then you might create a customization which evaluates if the entry is valid instead of maintaining a table with all possible values.

    If this is not possible, probably the best would be generating a table within Dynamics 365 with custom x++ coding, but this isn't the most easy thing to do. I did it once based on AX2009, but not in the current version. Compared to AX 2009 the data model is changed to support configuration of dimensions which implied a far more complex data model.

  • Kamil Gwiazdowski Profile Picture
    35 on at

    Hi André,

    thanks for your comment. It assured me, that our approach is not that far from optimal :)

    Finally we decided to simplify whole architecture a little bit - in short, we will export both possible financial dimensions values and advanced rule structures to the external intermediate database and then on that database we will create complex query or view to show possible values.

    Unfortunately we cannot abandon current 3rd party invoicing system.

  • Lalit Jivnani Profile Picture
    395 on at

    Hi Kamil,

    Although this thread is older, I still want to ask from you about the approach you took to achieve this. We have received the similar requirement where they want to have this all possible combinations based on the account structure.

    If you have achieved this inside D365 itself, i would really appreciate if you can help me out in this so as my time and efforts would be saved here.

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

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 464 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