• Venkatesh Gadad
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

I am new to salesforce developemnet.I have learnet most of the salesforce concepts like Apex,triggers,API's and salesforce customization.I have practiced with varuous uses cases form this forum.However i still don't have experience of a full time project.So if any body can help me in this context.

Thanks in advance,
 
  • September 05, 2019
  • Like
  • 0
Hi All,
I am getting error as following : IN operator must be used with an iterable expression .
My code is : 
List<Task> ts1=[Select Id,WhoId from Task];
    for(Task ts2 : ts1){
    Map<ID, Obj1__c> mapAccounts = new Map<ID, Obj1__c>([SELECT Id, Name, Filed1__c  FROM Obj1__c WHERE                                                                                                               Field1__r.Id IN: ts2.whoId]);
}
Filed1__c is lookup to account.
How to resolve this?

Thanks in Advance