Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Parent enttiy : Account
Child Entity : SubAccout
Sub account will be visible on click on Related on Opening an account form
I need to hide Or Show SubEntity in related record based on field in Account form
Hi Ram Prakash,
You can create an event trigger and use this method(https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui-navigation/setvisible) to achieve this.
Parent entity: Department
Child entity: Employee
Based on A Yes/No type field in Department named showRelatedEntity to show or hide Employee navegation.
I create an on load event with the below code:
var formContext = executionContext.getFormContext();
var showRelatedEntity = formContext.getAttribute("cr5a6_showrelatedentity").getValue();
When showRelatedEntity is 'Yes':
BTW, if you don't know the parameter in formContext.ui.navigation.items.get(parameter) method, you could console.log(formContext.ui.navigation.items.getAll()) first and in that you can get it:
Business Applications communities