C# Create .icx Calendar file - to remove / cancel appointment - c#

I see a few examples for dynamically CREATING appointments via .icx files, but I have not come across any samples for allowing a user to download a dynamically created .icx file to REMOVE an item from their calendar. Any suggestions? I am not sure what attributes would need to match with the existing item - start/end/ and subject? Any help would be appreciated.
Thanks!

Related

How to remotely set multiple calendar entries of an Outlook calendar?

We have a shared excel file at work that we use as our shift planning roster, I would like to make a C# application that would query the file and depending on a selection, it would somehow send several entries/events to that particular users's outlook calendar.
I haven't had too much luck searching for how to do this, could someone please point me in the right direction? I can figure out the excel part but I have no idea how to make that work seamlessly with Outlook.
Thanks in advance :)
Use Application.CreateItem to create entries in the user's default Calendar. You can obtain their default Calendar by getting a Folder object reference from NameSpace.GetDefaultFolder.
See also: "Create an Appointment as a Meeting on the Calendar"

Get user detailed activity on Documents in Sharepoint 2010

I currently have a client that needs to generate a report on the user's changes on the documents on every Document Library on every site collection.
I know I can use the Audit module OOB, but it doesn't show enough detailed data on the changes made on each item.
I was thinking about the detailed version history on the documents, but I would have to populate through every item of every list on every site collection. Something like this.
I was thinking about doing a custom page that combines both. I can filter the audit info of a particular user on a particular date range, and use the ItemId to get it's versioning details up to the audit date.
What do you think? could that be possible? is there a better way?
Thank you!
I recommend you develop a EventReceiver implemented in sitecollection level, so you can save "custom-made" any changes in elements of lists or libraries. So you can have your custom audit log in alternate database.
See also: http://msdn.microsoft.com/es-ec/library/ee231563.aspx
The EventReceiver is a good feature to keep high control in SharePoint Functionality.
Sorry for my bad english.

Is it possible to add attachment or document to an google event entry programmatically using c#? If possible, how? [duplicate]

I am using Google API Version 2 fo .NET to create Google Calendar Entries.
How can i add "Attachment" to Google Calendar?
Thanx
I was trying to find the answer to this question myself, and after looking through the XML results for various queries using the Calendar API feeds, I'm pretty sure there isn't currently a way to retrieve or update file attachments. Since calendar event file attachments is a lab feature from Google, it's not entirely surprising that they aren't yet available through the public API.
Depending on what you are trying to do, you could use extended properties to store additional information about attachments in an event, but these values won't be read by the calendar web client, so you would only be able to use them for your own application.
A couple other things (admittedly hacks) you could try:
The ICAL feed provided by Google
Calendar provides an ATTACH:
property. You could have your app use
the import url to import an ics file
containing your attachment.
You could
simulate the web client, which posts
a gdoc-attachment parameter to update
an events with an attachment.
You also might try posting to the calendar help forums. The only related post I could find was here.
Good luck!
For all the future generations reading this, the attachments are now supported, here is the guide on how to do it: https://developers.google.com/google-apps/calendar/create-events#attachments

SharePoint most clicked links

I am trying to make a web part that will display what links got clicked/viewed the most across the whole site collection. These links come from a SharePoint list.
Is there a mechanism in the object model that can be used to accomplish this?
Any thought would be helpful.
If the links all go to SharePoint pages within your portal, then you might be able to gather the information in your Site Usage Report, then query that in a custom web part. If the links point to places outside your portal, I am not aware of any out-of-the-box record of which links are getting clicked on in a SharePoint list. You could possibly make some javascript to add special code to the list interface so that, whenever a link is clicked, it first records to a database, then takes the user to the destination.

SharePoint Calendar List : Restrict entering second item with same From and To date

I want to restrict entry of new item into sharepoint calendar list with the same from and to dates for the same created user. Let me know this can done, accessing sharepoint object model with C#.
Environment WSS3.0, MOSS 2007, C#
Thanks
You will need to use a List Event Receiver and tie into the ItemAdding event - http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventreceiver.itemadding.aspx
There's a good tutorial here: http://msdn.microsoft.com/en-us/library/bb736146.aspx
And a good little tool for attaching the event receiver - http://lirliron.blogspot.com/2007/08/moss-list-event-receiver-register_08.html
You can do the check against the To and From and see if there is already an item with that in the list, and if there is set the SPItemEventProperties.Cancel appropriately.

Categories