Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

FetchXML Or condition with layered link-entities

Posted on by 50

Hello,

I have used xrmtoolbox to manage basic link-entity or conditions, but struggling with this scenario. Hoping it is possible. 

Purpose: Need to see all accounts with any activity (activities, opportunities, secondary accounts on opportunities). However, if I am a sales team member (custom table/entity) on an opportunity, I want the same view to show me the accounts with activities of what I am associated to/a member of.

Current Setup:

pastedimage1643048643488v2.png

Seems I need a way to group the objects associated with accounts together in an Or condition and the ownerids in an Or condition. However, when I group SalesTeam ownerid with the others it doesn't like being pulled out of the related opportunity. 

Is this possible to achieve? 

I have used these two links as references, but still struggling to make it work.

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/280396/fetchxml-or-condition-using-multiple-link-entities/900585

https://andz88.wordpress.com/2018/01/24/fetchxml-trick-cross-entity-criteria-in-a-group-filter/

Any insights would be greatly appreciated. 

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans