Sharepoint Event Create Version 2

This handler makes a SOAP call (using Savon) to the SharePoint Web Services to create a new event in a SharePoint calendar. After configuring Savon to work with the given account credentials, a few inputted values are checked for validity while the time parameters are configured so that SharePoint will recognize them. Next, the Batch XML structure is built to give the Web Service the information it needs to create the new event, which is then passed via a SOAP call to SharePoint, where the event is created on the specified calendar. Any errors that occur during this process will be caught and re-raised by the handler. Authentication is done through SSL, so the SharePoint site being accessed needs to be setup to allow SSL connections.

  • Make sure the SharePoint Web Services database is turned on.

How to Obtain the Homepage URL Info Value

To find the homepage url, all you have to do is look at the URL of any page on the SharePoint site. The url that should be inputted should contain both the base url (the top-most site in the collection) and the sub-site that you are on. For example, given the following URL: https://sharepoint.company.com/development/SitePages/Home.aspx The base site is "sharepoint.company.com", the sub-site is "development" and the 'HomePage URL' task info values should be set to: https://sharepoint.company.com/development

Parameters

Name Description
Title The title of the new event.
Location The location of the new event.
Start Date The start date of the new event in YYYY-MM-DD format.
Start Time The start time of the new event in HH:MM format. Both 12 hr (01:00 PM) and 24 hr (13:00) formatting are allowed. If it is an All-Day event, leave this blank.
End Date The end date of the new event in YYYY-MM-DD format.
End Time The end time of the new event in HH:MM format. Both 12 hr (01:00 PM) and 24 hr (13:00) formatting are allowed. If it is an All-Day event, leave this blank.
Description A description of the new task.
Category The category that this event will be filed under.
Calendar The name of the calendar you wish to add this event to. The default calendar is 'Calendar'.

Sample Configuration

Name Description
Title Sample Title
Location City Hall
Start Date 2013-11-03
Start Time 03:00 PM
End Date 2013-11-04
End Time 05:00 PM
Description This is a sample event
Category Work
Calendar Calendar

Results

This handler does not return any results.

Changelog

SharepointEventCreate_V1 (2012-08-03)

  • Initial version. See README for details.

SharepointEventCreate_V2 (2013-10-08)

  • JOpenSSL updated to version 0.8.8 and self signed cert info value removed.


Related Handlers

Sharepoint Task Create
This handler creates a new announcement in the SharePoint Tasks list
Sharepoint Discussion Board Post
This handler creates a new post in a SharePoint Discussion Board
Sharepoint Document Upload
This handler uploads a document to a document library
Sharepoint Issue Item Add
This handler creates a new issue in a SharePoint Issue Tracking list
Sharepoint Link Item Add
This handler creates a new link item in the SharePoint Links list
SharePoint List Item Add
Creates an items for a given list in SharePoint using the REST API.
SharePoint List Item Delete
Deletes an items on a given list in SharePoint using the REST API.
SharePoint List Item Update
Updates an items on a given list in SharePoint using the REST API.
SharePoint List Items Retrieve
Retrieves the items from a list SharePoint list using the REST API.
Sharepoint List Retrieve
This handler retrieves the contents of a list from the configured Sharepoint site and returns a JSON representation of the data.
Sharepoint Site Create
This handler adds a new Site to a SharePoint top level site.
Sharepoint Task Create
This handler creates a new task in the SharePoint Tasks list