Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Creating custom view using javascript from 3 tables(Case->Account->Contact)

(0) ShareShare
ReportReport
Posted on by 36

Hello Dynamics Experts,

Can you please provide me help in creating custom view using JavaScript/webapi from 3 tables(Case->Account->Contact)

Requirement:

1) When an user opens CASE form there will be an account field lookup.

2) On hand side of the case form there will be a custom view.

3) In that contact custom view want to display linked contact related to Case -> Account to be displayed in Contact custom on CASE form.

Requirements.jpg

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Creating custom view using javascript from 3 tables(Case->Account->Contact)

    So I see 2 things you should take a look:

    pastedimage1669825316411v1.png

    I believe in this case if you want to see all the contacts (and not only those that the current user owns) the view should be "Active Contacts".

    pastedimage1669825418060v2.png

    It seems that in a "Quick View" selector you selected not the form you designed.

  • CCDEV Profile Picture
    36 on at
    RE: Creating custom view using javascript from 3 tables(Case->Account->Contact)

    Steps Followed:

    1) From Classic solution explorer navigated to the account and created a new “Quick View” form. Placed the grid of CONTACT to it, save and publish the form

    pastedimage1669824322160v1.png

    0042.Account.jpg

    2) Opened the “Case” form and add a “Quick View” form to it:

    4478.Case.jpg

    3) Now its should display account related contact from opened CASE form, but it was displaying account

    Error-Form.jpg

    [quote user="Andrew Butenko"]

    I'm sorry but "it doesn't work" screenshot won't help.

    Can you please provide a step-by-step description of what you did - "I did everything you wrote in your post" is not a good description of steps.

    [/quote]
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Creating custom view using javascript from 3 tables(Case->Account->Contact)

    I'm sorry but "it doesn't work" screenshot won't help.

    Can you please provide a step-by-step description of what you did - "I did everything you wrote in your post" is not a good description of steps.

  • CCDEV Profile Picture
    36 on at
    RE: Creating custom view using javascript from 3 tables(Case->Account->Contact)

    Hi Andrew,

    Have implemented your suggestion, but still can't see the contact related to account on Case Form

    empty.jpg

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Creating custom view using javascript from 3 tables(Case->Account->Contact)

    Hello,

    I believe you can use suggestion 1 from this article - butenko.pro/.../

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 > Customer experience | Sales, Customer Insights, CRM

#1
Holly Huffman Profile Picture

Holly Huffman 103

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 96 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 51 Most Valuable Professional

Product updates

Dynamics 365 release plans