You need to sign in to do that
Don't have an account?
sparky
public calendars in apex?
Is it possible to add an event to a public calendar via apex or the API in general? I could try it myself, but it's much quicker to ask.
Once I've added an event to a public calendar via the standard UI, I can pull up the record in Apex Explorer etc. and see that it's put in the public calendar ID as the OwnerID, but don't know if apex will let me write that value directly. (I've noticed that one quirk of the standard UI is that while I can create an event in the public calendar if I start from that calendar, I can't take an existing event and move it to a public calendar by typing the name of the calendar in the Assigned To field (which I assume corresponds to OwnerID.) I want to make sure there aren't similar limitations on edits for apex.
And is there any way to pull up a list of public calendars and their ID's? I don't see the object anywhere in the scema explorer.
Thanks much!
Once I've added an event to a public calendar via the standard UI, I can pull up the record in Apex Explorer etc. and see that it's put in the public calendar ID as the OwnerID, but don't know if apex will let me write that value directly. (I've noticed that one quirk of the standard UI is that while I can create an event in the public calendar if I start from that calendar, I can't take an existing event and move it to a public calendar by typing the name of the calendar in the Assigned To field (which I assume corresponds to OwnerID.) I want to make sure there aren't similar limitations on edits for apex.
And is there any way to pull up a list of public calendars and their ID's? I don't see the object anywhere in the scema explorer.
Thanks much!
However, I haven't been able to get it to change an existing event from one calendar to another public calendar. This also doesn't appear to be possible in the UI.
Is this something that is intentionally not allowed, or is there some trick to doing it?
Thanks much!
* it doesn't appear to be possible in general to create an event on a public calendar if I'm starting from a record (an Opportunity, for example) The UI does not let me enter the name of the calendar in the Assigned To field. However, if I start from the calendar and click New Event, it fills in the calendar name there and then accepts it. Is there any way (short of an scontrol or apex) to create a public calendar event starting from an Opp?
* public calendar events related to an Opp don't seem to be showing up in the Activity related lists on the Opp layout. Is there any way to get them to show up there?
Thanks much!
Message Edited by sparky on 11-28-2007 01:02 PM
Unfortunately you have run into a few known issues/limitations with our current calendar. To confirm:
There is no way to get a list of public calendars via API.
It is not possible to move the event from one public calendar to another or from a user to a public calendar.
It is not currently possible to create a public calendar event starting from an Opportunity.
It is true that public calendar events related to an opportunity do not show up in the related list for the opportunity. This is also a known problem.
At this time, we do not have an ETA for when these issues may be addressed.
It helps a lot to know what the situation is, although as you can imagine, these weren't the answers I was hoping for.
Any chance you could weigh in on this one too?:
http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=1890
I'm guessing the answer is no, since no-one has replied yet, but would like to know for sure.
Thanks much!
Here's my "get out the vote" grass roots campaign.
If you need more API control over the Public Calendar, please vote: http://ideas.salesforce.com/article/show/99709/make_Public_Calendar_events_firstclass_citizens?skin=adn
We used to at least be able to run activity reports that would include events assigned to a public calendar. As of 10/13/2008 (Winter09 release), those reporting capabilities have broken. SF support has not provided any acceptable response to the issue. Has anyone else run into this?
Hi Sparky,
I tried out same thing but did not succeed. May be I am doing something wrong. Could you please send me the code so that I can see that and make changes accordingly. I want to pass public calender ID as owner ID.
Many thanks.
regards,
PB
I have tried to access it from the custom settings by creating the list.