Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to Link Customer to Default Dimension in query

Posted on by 184

I want to create query to get the customer and its default dimension, I just can not figure out how I can link them using the tableID I tried to create a variable to get the tableNo but it does not accept variables in the dataitemLink property.
Is there any way i can do this ?

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: How to Link Customer to Default Dimension in query

    hu

    yes, it's ok

    DAniele

  • Muaaz Deyab Profile Picture
    Muaaz Deyab 184 on at
    RE: How to Link Customer to Default Dimension in query

    Thanks for your answer, I solved it like this

            dataitem(Default_Dimension; "Default Dimension")

               {

                   DataItemLink = "No." = Customers."No.";

                   DataItemTableFilter = "Table ID" = const(18);  // here

                   column(Dimension_Code; "Dimension Code") { }

                   column(Dimension_Value_Code; "Dimension Value Code") { }

                   column(No_; "No.") { }

               }

    is it good?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How to Link Customer to Default Dimension in query

    The best way to solve this is to use the DimensionManagement codeunit. That codeunit have function where you can send in the dimension set ID from the customer and get a dimension set as a return value.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans