web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

financial dimension > Business unit and name from Customer through code

(0) ShareShare
ReportReport
Posted on by 56

Hi 

I have Sales order. Having customer SHT2903. I need financial dimension > Business unit and name from Customer.

MSO_5F00_CUST.jpg

Kindly let me know how will get the ( financial dimension ) business unit and name value from customer?

Please give me more shed on this.

thanks!

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello @rp@n,

    Can you elaborate what you are looking for exactly?

    How to grab these data through X++ code?

    Or are you looking for something else?

    Best regards,

    Ludwig

  • @rp@n Profile Picture
    56 on at

    Hi Luudwig,

    yes through X++ code

  • Suggested answer
    Martin Dráb Profile Picture
    239,381 Most Valuable Professional on at

    DimensionAttributeValueSetStorage dimStorage = DimensionAttributeValueSetStorage::find(custTable.DefaultDimension);
    dimStorage.getDisplayValueByDimensionAttribute(...);    

  • @rp@n Profile Picture
    56 on at

    thanks Martin,

    I need to pass parameter dimensionAttributeId ( recId)

  • @rp@n Profile Picture
    56 on at

    Hi Martin,

    DimensionAttributeValueSetStorage dimStorage;
    CustTable                         custTable;
        
    custTable = custTable::find("30781810");        
    
    dimStorage = DimensionAttributeValueSetStorage::find(custTable.DefaultDimension);
    dimStorage.getDisplayValueByDimensionAttribute();

    How will get dimensionAttributeId for the particular customer ?

    Please give me more shed on this.

    thanks!

  • Martin Dráb Profile Picture
    239,381 Most Valuable Professional on at

    I don't know how you identify the dimension you want to use. I guess you'll have a parameter somewhere.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans