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, ...
Suggested Answer

financial dimension > Business unit and name from Customer through code

(0) ShareShare
ReportReport
Posted on by 30

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
    30 on at

    Hi Luudwig,

    yes through X++ code

  • Suggested answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

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

  • @rp@n Profile Picture
    30 on at

    thanks Martin,

    I need to pass parameter dimensionAttributeId ( recId)

  • @rp@n Profile Picture
    30 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
    237,880 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

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

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans