You need to sign in to do that
Don't have an account?
JMThornton
Casting object to object?
Hello everyone,
I'm trying to use the result of a query to query on another object:
List<Opportunity> oppList = [Select AccountId From Opportunity where Id = :a.Opportunity__c];
List<Account> accList = [Select Is_Trade_Account__c From Account Where Id in :oppList];
I'm getting an invalid bind expression error on the 2nd query as it is of type Account.
Is there some way around this? Casting? toString? This seems like it should be a pretty fundamental concept and I'm just missing something.
Thank you in advance!
-Jon
Try this...
All Answers
Try this...
This is the solution, thanks for the help!
-Jon