function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jf317820jf317820 

SOQL Query Help -- Select all opportunities where I either own the opp or I'm on the deal team

Hey guys,
 
I need help writing this SOQL-R query...I think I'm overanalyzing the query, but I haven' been able to figure it out.
 
I want to select all opportunities where I own the opp or are a part of the opp team.
 
Thanks in advance.
benjasikbenjasik
I think those are two queries, even in soql-r, until we have a union operator

Find me all the opps that I own (Opportunity)
Find me all the opportunities where I'm a team member (drive from OpportunityTeamMember)