You need to sign in to do that
Don't have an account?

how to add more than 1 invitee(whoid) to an event using code…?
i want to insert an event record...but like i have more than 1 lead..i want to insert more than 1 leads as an invitee...
Like using whoid we can insert 1 record ... Using the standard interface we can click on add to inviteesbutton and add multiple invitees..How to add multiple using code so that it shows below on salesforce events...any help will be appreciated...
Event e= new Event(); e.Subject='Call'; e.ownerid=userinfo.getuserid(); e.StartDateTime=datetime.now().adddays(5); e.EndDateTime=datetime.now().adddays(5); e.WhatId=recid; **//e.WhoId=** insert e;
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_eventattendee.htm
Hope this helps.
All Answers
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_eventattendee.htm
Hope this helps.
hii ,
Can u share me code how you acheived this..Becoz i need the same functionality