Back to Microsoft SharePoint Integrations
Handler · Version 1

Sharepoint Document Create Microsoft SharePoint

Download GitHub

About

This handler create a file that is then uploaded to a SharePoint document library using an HTTP Put method call. Before making the call, the handler appends an extension to the file (if necessary). It then uses the given parameters to form the URL where the new file will be uploaded to. Lastly, the call is made (using the Rest Client gem) and the file is created and 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 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

Configurations
Name Description Sample
username The username of the Sharepoint account.
password The password of the Sharepoint account. *********
domain The domain of the Sharepoint server where the information will be pulled from.
self-signed_cert If the Certificate that you are using for verification is self-signed, then input 'true'. If it is not, input 'false'.
homepage_url The url for the homepage of the Sharepoint site that this handler will have access to.
enable_debug_logging Enable debug logging if the value is set to 'Yes'. No
Parameters
Name Description Sample
Document Library Name The title of the document library that the file will be placed in. Shared Documents
Document Name The name of the new file. test_file.txt
Document Contents The text to be put in the file that will be uploaded to the document library. This is some sample text that will go in the file.
Changelog

SharepointDocumentCreate_V1 (2012-10-17)

  • Initial version. See README for details.
Download GitHub

On This Page

Looking for a workflow engine? Learn more about the Kinetic Data Enterprise Workflow Platform. Check it out
Return to Top