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 :
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

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

    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/.../

  • krishna srikanth Profile Picture
    137 on at

    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.

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

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

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 97 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans