Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Customize view from code


I was working on the model-based application where I have an Entity: Account associated with the Entity: contact associated with Entity: Role.

Is there a way to show the information related to a role, for example, a role name in the view of Account. And is there any way how I can customize view from code.


I read it here ( but I don't know much on how to code in Model-based application. Can anyone give a step by step process on how to generate view through code and how to get 3rd level look-up in the model-based application? Currently, I can only fetch data from related entity contact but I want information from the role as well.



Community Support
Community Support

Re: Customize view from code

Hi @summitb,

Could you please share a bit more about your scenario?

Could you please show more details about the code you used to custom your form?

Currently, I am not familiar with customizing entity view forms using code in Model-Driven app.

Please check and see if the following article would help in your scenario:


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Not applicable

Re: Customize view from code

@summitb thank you posting in the community. Can you review the latest reply and update the thread?



Helpful resources


Microsoft Ignite

This will be a conference that you do not want to miss!


New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,625)