You need to sign in to do that
Don't have an account?
Chris Cruz
Filtering Opportunities by Tasks using SOQL?
I'd like to pull all Opportunity IDs that have a task associated with a certain person.
I've tried the following
Select ID from Opportunity where AccountID IN (Select AccountID From TASK WHERE CreatedBy.Name='Person' OR LastModifiedBy.Name='Person' )
But I get the following error
ERROR at Row:1:Column:80 Entity 'TASK' is not supported for semi join inner selects"
Is there any work around to this
I've tried the following
Select ID from Opportunity where AccountID IN (Select AccountID From TASK WHERE CreatedBy.Name='Person' OR LastModifiedBy.Name='Person' )
But I get the following error
ERROR at Row:1:Column:80 Entity 'TASK' is not supported for semi join inner selects"
Is there any work around to this
If you want to make it so the platform can support this type of join, I'd suggest voting on this in the idea exchange https://success.salesforce.com/ideaView?id=08730000000J68o