Sharepoint Task Create logo

Sharepoint Task Create Version 1

This handler makes a SOAP call (using Savon) to the SharePoint Web Services to create a new task in your sites 'Task' list. After configuring Savon to work with the given account credentials, a few inputted values are checked for validity while the parameters for 'Assigned To' and 'Priority' are modified to fit SharePoint standard. Next, the Batch XML structure is built to give the Web Service the information it needs to create the new task, which is then passed via a SOAP call to SharePoint, where the task is created. 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 task.
Start Date The start date of the new task in YYYY-MM-DD format.
Due Date The end date of the new task in YYYY-MM-DD format.
Description A description of the new task.
Priority The priority of the new task.
Assigned To The user who you want to assign this task to in the form of DOMAIN\username.
Task List Name The name of the task list that the task will be added to. The default task list is 'Tasks'.

Sample Configuration

Name Description
Task List Name Tasks
Title Sample Title
Start Date 2013-11-01
Due Date 2013-11-04
Description This is a sample task
Priority (2) Normal
Assigned To SHAREPOINT\another.user

Results

This handler does not return any results.

Changelog

SharepointTaskCreate_V1 (2013-10-08)

  • Initial version. See README for details.


Related Handlers

Sharepoint Contact Create
This handler creates a new contact in the SharePoint Contact 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 Event Create
This handler creates a new event within a SharePoint Calendar.
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 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.