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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Contact view with parent and child account contacts

(0) ShareShare
ReportReport
Posted on by

Hi,

I've been trying to create a view that would consist of:
  • all contacts from accounts that satisfy certain criteria (e.g. Geography = US), and
  • all contacts from child accounts of accounts that satisfy the above criteria

I managed to do the first bullet-point but I'm struggling with the 2nd bullet-point. Does anyone have an idea how to create such a view or point me to a discussion where this was discussed? I've been looking through forum but couldn't find any discussion that solves my question.

Thank you! 

I have the same question (0)
  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi Bruno,

    The first condition and the second condition cannot be connected by OR in the filter of a view, because they are all in the related entity. Only the fields in the same entity can be connected by OR.

    So in order to achieve this requirement, we have to create two fields to represent the results of the two conditions.

    Step 1. Create a new lookup field in Contact, the Target Record Type is Account.

    pastedimage1610518759220v10.png

    Step 2. Create a workflow. If the value of the Conpany Name field is of type Account, then use it to fill the newly created lookup field, otherwise clear the newly created lookup field value.

    pastedimage1610519189554v11.png    pastedimage1610519326153v16.png

    pastedimage1610519230406v12.png    pastedimage1610519249121v13.png

    pastedimage1610519265364v14.png    pastedimage1610519283884v15.png

    Actavite the workflow.

    Step 3. Create an on-demand workflow.

    pastedimage1610520014074v26.png

    pastedimage1610520071973v27.png

    Run the on-demand workflow for all Contacts.

    Step 4. Create a new field in Account, the Field Type is Calculatedthe other attributes are the same as the Geography field of Account.

    pastedimage1610519437547v17.png

    Edit the calculated logic as follow.

    pastedimage1610519509097v19.png    pastedimage1610519494705v18.png

    Step 5. Create two new fields in Contact, the Field Type is Calculated, one is for Account Geography , the other is for Parent Account Geography of Account, the attributes are the same as the Geography field of Account.

    pastedimage1610519766807v23.png

    pastedimage1610519791518v24.png    pastedimage1610519801685v25.png

    pastedimage1610519650955v20.png

    pastedimage1610519686596v21.png    pastedimage1610519697569v22.png

    Finally, we can set the Contact view filter as follow.

    pastedimage1610520220804v28.png

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans