Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Restrict the display of organization hierarchy nodes which doesn't consists Retail Channels/Stores as child

(0) ShareShare
ReportReport
Posted on by 137

Hi Team,

I had a requirement to restrict the Organization hierarchy display on the Form i.e. Entire tree structure node needs to be ignored if that node doesn't consists of retail channel.

For example: Please refer the below sample setup done in organization hierarchy (Highlighted nodes doesn't have any retail channels).

Now my requirement was to ignore the display of entire nodes i.e. "East" (i.e. East & IT Department) and "West". 

Added new condition ignoring "WEST" node & "IT Department" nodes only because when standard code was traversing through each node  added the condition to check whether that node consists any child/not if that was not there this was ignored.

I have duplicated the standard class [RetailInternalOrgTreeDatasource] and added some conditions as this entire customization was Legal Entity Specific.

Class    - RetailInternalOrgTreeDatasource

Method - getOrgTreeData

Please refer condition  added to the above mentioned method in the attachment file highlighted in UPPERCASE:- (added code in while loop).

Added new condition  ignoring entire "WEST" node & "IT Department" nodes only.[View:/cfs-file/__key/communityserver-discussions-components-files/797/6404.getOrgTreeData_5F00_Method.txt]

8306.OrgHierarchy.PNG

Highlighted One's are not Retail Channels/Stores 

With new customized Condition in the code:-

6648.StoreHierarchyHide.PNG

  • krishna srikanth Profile Picture
    137 on at
    RE: Restrict the display of organization hierarchy nodes which doesn't consists Retail Channels/Stores as child

    Hi Ramune,

    Yes both are pointing/seeking the same solution. Once we get solution in any one of the blog we will delete another/Unanswered post.

    Thanks & regards,

    Krishna srikanth M.

  • Ramune Profile Picture
    on at
    RE: Restrict the display of organization hierarchy nodes which doesn't consists Retail Channels/Stores as child

    Hi Krishna,

    it seems you continue the same topic as it was mentioned in another community thread:

    community.dynamics.com/.../hide-organization-hierarchy-nodes-where-retail-stores-are-not-part-of-current-legal-entity

    I will leave this for the community to answer. Let's see if anybody has experienced the same and can advise for you anything. If this is a requirement to have in standard, please create an Idea in Ideas portal:

    experience.dynamics.com/.../

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 171 Super User 2025 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 140 Super User 2025 Season 1

#3
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 127 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans