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

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

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 302 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans