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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

Get Financial dimension sets from DefaultDimension value X++

(0) ShareShare
ReportReport
Posted on by 15

Hi 

How get value of ( Name of Financial dimension sets ) from DefaultDimension value of vendtrans via x ?

I used the code below, but it not work, because he fetch all level of Financial dimension sets,


For some exemple i have only costCentre and OperationUnit for transaction in VendTrans, the result should be only (CCOpUnit) but the query fetch all level of financial dimension sets

Thanks 

select DimensionAttribute, DimensionHierarchy, Level_, dimensionHierarchy.NAME, VendTrans.invoice
from dimensionHierarchyLevel 
join dimensionHierarchy
on   dimensionHierarchyLevel.DimensionHierarchy = dimensionHierarchy.RecId
--and  dimensionHierarchy.Name = _dimensionSetName
and  dimensionHierarchy.StructureType = 6
and  dimensionHierarchy.IsDraft = 0
and  dimensionHierarchy.IsSystemGenerated = 0
join DimensionAttribute
on DimensionAttribute.recid = dimensionHierarchyLevel.DimensionAttribute
join DEFAULTDIMENSIONVIEW
on DEFAULTDIMENSIONVIEW.Name = DimensionAttribute.Name
join VENDTRANS
On DEFAULTDIMENSIONVIEW.DEFAULTDIMENSION = VENDTRANS.DEFAULTDIMENSION
and VENDTRANS.INVOICE = '78777'
order by dimensionHierarchyLevel.Level_

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi sir,

    What do you mean by it fetch all level of Financial dimension sets,Would you specify what really do you want?

  • AMER MS Profile Picture
    on at

    can you share the result records to understand the hierarchy

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 301 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Siv Sagar Profile Picture

Siv Sagar 105 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans