Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Displaying Fields from Other Tables

Posted on by 166

Hello,

I have a table called 'Project' connected to a table called 'Cashflow' and their relationship is 1-M (where 1 Project can have Many Cashflows).

I need to display the Project's Cashflows which is the 'Cashflow Amount' column from Table Cashflows, in the Project's Form

Is there a way to achieve that?

Thank you in advance,

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Displaying Fields from Other Tables

    Hello Joseph,

    User must add SubGrid control for the child Entity in the parent entity’s form.

    For example, consider the Parent entity as “Project” and the child entity as “Cashflow.”

    To see related child entity’s (Cashflow) records in the subgrid, the user needs to add a subgrid in the form of that entity (Project).

    Follow the Blog for steps to add a subgrid of child entities.

  • Joseph Nasr Profile Picture
    Joseph Nasr 166 on at
    RE: Displaying Fields from Other Tables

    Hey thanks for your reply!

    It helped in a way but I'm still a bit off. I was able to see the related Cashflows under 'Related'.

    But it would be much better if I could see them in the Form of the Parent (Accounts in your example) as in the image below.

    Screenshot-2023_2D00_02_2D00_27-121936.png

    The subgrid is showing me all the Cashflows, how can I restrict it to show the Cashflows of the related Parent only?

  • Suggested answer
    Leco Lv Profile Picture
    Leco Lv on at
    RE: Displaying Fields from Other Tables

    Hi partner,

    Do you want to add field records in the child table(Cashflows) to the parent table(Project)?  ->subgrid

    Here I use accounts and contacts as an example, an account can have multiple contacts (consistent with the relationship between your entities). It seems you can only display records for fields in Child tables in the following way. You can create subgrid and add fields to view.

    pastedimage1677481948010v1.png

    pastedimage1677482528044v1.png

    Please let me know if you have other special needs.

  • Joseph Nasr Profile Picture
    Joseph Nasr 166 on at
    RE: Displaying Fields from Other Tables

    Hello Sagar,

    Thank you for taking the time to answer. I will try this approach right now and tell you how it goes, and yes you got the relationship right. It is exactly how you described it in:

    "Else (1:M), since there would be many Cashflows per Project, you can use a sub-grid with a view that includes 'Cashflow Amount'."

  • Joseph Nasr Profile Picture
    Joseph Nasr 166 on at
    RE: Displaying Fields from Other Tables

    Hello,

    Yes I meant 1:N as in 1 to Many

  • Leco Lv Profile Picture
    Leco Lv on at
    RE: Displaying Fields from Other Tables
    [deleted]
  • Suggested answer
    Sagar Negi Profile Picture
    Sagar Negi 10 on at
    RE: Displaying Fields from Other Tables

    Hi,

    I'm not sure if I understand the relationship right.

    If you have a "Cashflow" lookup on Project form (1:1), then you can try using 'quick view' form.

    learn.microsoft.com/.../create-edit-quick-view-forms

    Else (1:M), since there would be many Cashflows per Project, you can use a sub-grid with a view that includes 'Cashflow Amount'.

    Please mark verified if you find this helpful.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans