Sharepoint Document Upload Version 1

This handler uploads a file to a SharePoint document library using an HTTP Put method call. Before making the call, the handler builds the url based on the inputted parameters. This url is the location where the file will be uploaded to. The call is then made using the Rest Client gem and the file is uploaded to the specified SharePoint document library. If the document library has versioning enabled, a duplicate file name will be uploaded as a new version and the file will be overwritten if versioning is disabled (versioning is disabled by default in new libraries). Any errors that occurs 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 get the Homepage URL

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. Using the example below, the url that would be inputted is "https://sharepoint.company.com/development", where "development" is the sub-site and "sharepoint.compnay.com" is the base site.

  • Parameter Example https://sharepoint.company.com/development/SitePages/Home.aspx

Parameters

Name Description
Document Library Name The title of the document library that the file will be placed in.
Document Name The name that the document will have on the SharePoint server.
Attachment Question Menu Label: The menu label of the attachment question where the photo will be uploaded to.

Sample Configuration

Name Description
Document Library Name Shared Documents
Document Name @answers['Document']
Attachment Question Menu Label:

Results

This handler does not return any results.

Changelog

SharepointDocumentUpload_V1 (2013-10-04)

  • Initial version. See README for details.


Related Handlers

Sharepoint Discussion Board Post
This handler creates a new post in a SharePoint Discussion Board
Sharepoint Document Create
This handler creates a document and then uploads it 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 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.