You need to sign in to do that
Don't have an account?
Jay-Dawg
Unable to add event attendees via the API (I'm using AJAX Toolkit v11)?
I have an s-control which invokes the API using Javascript and the AJAX Toolkit v11. My code is able to create Events, and I'm stuck now trying to create such Events to include multiple attendees.
The following code snippet does NOT work:
var TestAttendee = new sforce.SObject("EventAttendee")
TestAttendee.AttendeeId = "00570000000mZcp" //this is a valid User ID
TestAttendee.AttendeeId = "00570000000mZcp" //this is a valid User ID
TestAttendee.EventId = "00U70000006J7oq" //this is a valid existing Event ID
var result = sforce.connection.create([TestAttendee])
var result = sforce.connection.create([TestAttendee])
This returns the error "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY". What am I missing?
Is EventAttendee createable? The API documentation does not list "create" as one of the available methods for this object type, however some of the EventAttendee fields say that they do support "create".
What about the Event.IsGroupEvent field? Do I need to set that to TRUE first, or does that happen automatically when attendees are added to that event? It doesn't seem like that field is updateable anyway, so I couldn't set it to TRUE if I wanted to.
Do the attendees need to be added during the initial creation of the event? How is that accomplished? I would assume you need the event first, in order to pass the EventID to the EventAttendee object, but perhaps I'm wrong?
Please help.
P.S. Salesforce Premier Support says that it IS possible to add EventAttendees via the API, but they won't tell me how and instead told me to buy Professional Services...
I had some apex code that created an EventAttendee object as part of a trigger. I swear the tests ran a month or so ago. I come back to it today and it tells me it's not writeable.
New or Changed SOAP Headers
If sounds like it's somehow possible to send out "group event emails" through the API, but I'm buggered if I can figure out how this relates to creating group events.
I must be imagining things.
I have a requirement where I need to create Full Event Form as Custom VF page, so if Adding Attendees is not possible then I think I'm Very BADLY stuck .. :( :( .. plz help ...
any suggestions ... ?
I would not recommend using that approach, and instead simply vote for the feature on the IdeaExchange (you're not alone in wanting this feature...).
You can also vote on this here : http://ideas.salesforce.com/article/show/101060/Would_like_API_access_to_createupdate_EventAttendee