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

Query for opportunities for parent as well as child accounts

(0) ShareShare
ReportReport
Posted on by 15

Using this example below if I search for opportunities for Parent Account and Child accounts it only shows opportunities for Child accounts and now the parent account itself.

What is the way we can get opportunities for both parent as well child accounts in the same query?

pastedimage1617216722495v1.png

Thank you.

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Thank you for your query.

    Try following steps:

    • Open Advanced Find and look for Opportunities.
    • Add condition Status equals Open.
    • Add condition Account Under Fabrikam Inc.
    • Save the view (this is crucial), once you save it short-hand query (Under) will be converted to full query.
    • Now, in the Accounts Contains Data section, add another condition Account equals Fabrikam Inc.
    • Select the both Account conditions and click Group OR.
    • Run and review the results.

    pastedimage1617220131708v1.png

    Please note, trick is to save the view after adding Account under 'Fabrikam Inc.' The or condition will give results from both Fabrikam Inc. and its child accounts.

    Results:

    pastedimage1617220324402v2.png

  • Ridhi210 Profile Picture
    15 on at

    Thanks for your reply.

    I tried your method

    first assigned account under X and tried saving it but getting this error saying the condition was referencing to the field account id . The field has been removed.

    Then I tried without saving and grouping but then I got error for short hand and long hand definition.

    Not sure what wrong I am doing here.

    Appreciate your help.

    Thank you

  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    Could you provide a screenshot of the error?

  • Ridhi210 Profile Picture
    15 on at

    pastedimage1617397307549v2.png

    pastedimage1617397278062v1.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 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans