You need to sign in to do that
Don't have an account?
Andrey Harutyunyan
Thanks,
Andrey
How to set whatId through Apex for already existed Events and Tasks?
List<Event> EventsList = [SELECT Id FROM Event WHERE WhoId = :contactId]; for(Event E : EventsList){ // the line below gives an error about invalid method. what code should I write? // E.setWhatId(accountId); }I need to set whatId of events and tasks of a contact who just was been converted from a lead to a contact skipping opportunity creation. But couldn't find according info to do that.
Thanks,
Andrey
If it helps please mark as correct, it may help others.
All Answers
If it helps please mark as correct, it may help others.
thanks a lot for your quick reply and help. It worked.