web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

FetchXML Or condition with layered link-entities

(0) ShareShare
ReportReport
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. 

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 197 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans