Skip to main content

Notifications

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

Is there a class function to get default dimension from account based on account type ?

(0) ShareShare
ReportReport
Posted on by 592

Hi guys,

In my creation of customer payment journal using X++, I want to get default dimension from an account. As you know to create payment journal, we need to put Account and then Offset account type and then Offset account based on the offset account type we just chose.

pastedimage1681269192642v1.png

May I know is there a standard function or some global class for me to use to get the Default Dimension of the account ? both for account and offset account. The 1st account is not difficult since the account type already fixed as it is Customer, I can just find CustTable and get Default dimension. But the Offset account is a little bit tricky because it is based on Account type, so for example the account type is Ledger, then the Default Dimension from the Main account, but if the account type is Bank, we supposed to get Default Dimension from Bank Account. 

Thanks.

  • Voltes Profile Picture
    Voltes 592 on at
    RE: Is there a class function to get default dimension from account based on account type ?

    Hi Martin,

    Yes, understood customer is not a default dimension, that is why in my question I keep saying I want to get Default Dimension either from customer, main account, or bank account.

    So the business problem in summary is, I'm asking whether there is a standard class or function that I can use to get Default Dimension from those data (customer/main account/bank),and those data is based on Account type in that Ledger Journal Trans.

    Thanks,

  • Martin Dráb Profile Picture
    Martin Dráb 230,962 Most Valuable Professional on at
    RE: Is there a class function to get default dimension from account based on account type ?

    Customer account isn't a default dimension. A default dimension is a combination of dimension values, not a single dimension value.

    Maybe you should forgot the terminology for a moment and rather explain what business problem you're trying to address.

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…

Vahid Ghafarpour – Community Spotlight

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

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans