Add Federated Calendar Programmatically

Does anyone know if it is possible to programmtically add a federated calendar to a user’s mail file? I want to add the iCalendar feed for one of our company’s apps to every user, and I do not want to have to have someone do this to every single user’s mail file in our company. From my digging, it looks like some of the information is stored in the CalendarProfile profile document, but I have not been able to completely find it all.

Thanks.

Subject: Its a good request, currently an api is not available without a UI intervention

Subject: I agree that it’s a feature that would be good to see.

Let’s say a group had a case calendar. It would be slick to roll that out to them all with a profile setting.

Right now, we have to ‘train’ the end user to manage their own calendar. That’s work!

Subject: Could you elaborate, please…

So this is currently possible in some fashion? Could you please explain how this could be done as it stands now.

Thanks

Subject: We have an api to call programmatically the add calendar dialog.

So for example if you are in the embedded web browser in notes and the user happens to be on an ICal web site, a toolbar button is enabled to add that calendar to notes.

Pressing the calendar button below in the toolbar brings the add calendar dialog with the url and other fields already populated. This is done programmatically. But then the end user has to press the OK button below to add it to his calendar.

Subject: Where are the federated calendar entries stored?

OK, so there is no real way to use an API to add a federated calendar entry. Where are these entries stored? Are they fields on the calendar profile document in the user’s mail file? If so, what are those field names? I have no problem using LS to create the proper document and/or field values.

Subject: It is stored in Calendar profile doc as

$CalUrl, but we also create an account record for it which you can see in file->preferences->accounts and they need to link up.

Subject: “Error creating key for this subscription”

I am done a client side button that updates th4 CALURLs item in the calendar profiel and creates a corresponding account in the PAB. But when I open it up in the calendar I have a nice little warning icon that says “Error creating key for this subscription”.So clearly there is another piece to this puzzle.

Subject: So, does the domino server fetch the ical feed?

The accounts are stored in the user’s names.nsf file. This file is only accessible on the server if the user is a roaming user. Does this mean that the domino server will only fetch ical feeds automaticlaly if the user is a roaming user? Or does the server never fetch the information? If the server is not fetching the ical feed, then “the view entries on a mobile device” option is relatively useless.

Subject: Its all done on the glass

The update is only done from the Notes client. And that feature matters because without it clicked, there is no notes document stored - just an entry in the xml/ical stream. So that way they wouldnt show up in iNotes or on your mobile device.

Subject: Federated calendars should be handled on the server

If the user is a roaming user, then the federated calendar feeds should be processed on the domino server. I don’t like the idea of having to make sure to go to my notes client calendar to get the info on my phone. Especially, since I am trying to integrate a corporate calendar that is updated while I am on the road.