SharePoint REST

Note:  UPLOAD SIZE LIMIT
The SharePoint REST API has a hard 2 GB limit on uploads. There is currently no way to circumvent this limit.

Caution:  It is recommended that MS Graph be used to Authenticate Microsoft Office products like SharePoint. If users are encountering job fails you should check your SharePoint permissions as the authorised account may not be limiting what 3Sixty can do.


Authentication Connection

There are currently two methods of authentication for the SharePoint REST Connector.




Integration Connection

The connection can operate in both repo and output modes. In repo mode, it will retrieve list items and all of their relevant metadata from a list or library on the specified site.

In output mode, the connection will write content and assign the mapped content type (from type mappings), or simply leave the new list item as a Document

Note:  FIELD MAPPINGS
A note on SharePoint REST Mappings. The only field type that needs the target type set for a mapping are Date fields. Numbers and text are parsed automatically from Strings.

Important:  This connector doesn't support Manage Metadata Column Types

Configuration

  • Connection Name: This is a unique name given to the connector instance upon creation.

  • Description: A description of the connector to help identify it better.

  • Authentication Connection: One of the SharePoint REST Authentication Connections


Job Configuration

Mapping

If you want to map the document version comments, please add below mapping (mapping is shown from SharePoint REST to CMIS connector)

Repository

  • List of Sites to Crawl: The sites from which this connector is collecting data. Use 'root' for the root site.

  • Libraries to Crawl: Which is the Shared Documents' folder in your site. It will crawl this lists in sequence. If left blank it will default to "Documents". List names do not require their parent sites (ex. 'Documents' not 'sites/Test/Documents')

  • Crawl all Libraries: Search all libraries. Checking this option will ignore the libraries listed.

  • Crawl subsites: Search the subsites of your library list.

  • Get Versions : Will gather document versions and binaries (if include binaries is selected). This option will reduce processing speed of documents.

  • Process Folders: As the name suggests, will gather folder metadata for processing/output.

  • Get Permissions: Enables the gathering of security information from the site. If this option is selected, the selected level of security will be applied to each document.

  • Parser Date Time Format: The date/time format of where the SharePoint server exists. Use country codes such as AU or US, or date format such as MM/dd/yyyy hh:mm a

Important:  DATE/TIME SETTINGS
Check the settings for any existing jobs to be sure the date/time is set to US.
To confirm the location try running a test by running a SP to BFS job and check to see if the dates are accurate. Dates with day of month over 12 like July 25th would create an issue if converted from 07/25/2022 to 25/07/2022

Output

Important:  SharePoint REST connector doesn't check for common illegal characters in file names before attempting to upload a file. The list of characters to avoid is % * : < > ? / |

  • Site Name : The name of the sub site or tenant site where the data will be placed.

  • List Title : The name of the library where the data will be placed.

  • Output Folder Path : The output folder inside the Library. The folder will be created if it does not exist.


Content Service Connection

Connection Configuration

  • Site Name : The site from which this connector is collecting data.

    • Site Url: [tenant].simflofy.com/sites/test, Value: sites/Test

    • Site URL: [tenant].sharepoint.com/MySite, Value: MySite

    • NTLM: Leave blank. Include this on the URL in the authentication connection.

  • List Title :The name of the library the connection will interact with. Connections can only support one library. The default value, if left blank, will be the Documents library, which will write to the Shared Documents' folder of your site.

If you're going to be testing REST endpoints, you will need a REST client to make the DELETE and POST calls.

Refer to this tutorial to set up Postman.

cUrl calls will also work, but the Postman interface makes it all much easier.


API Keys

SharePoint REST Connector: Read=true: Write=true: MIP=false

Repo (Read) Specs

Key

Description

Data Type

siteName Site Name (or path, if part of a site group, ie sites/MySite). String

listName

List Title

String

getVersions

Get Versions

Boolean

getPermissions

Get Permissions

Boolean

dateTimeParser

Parser Date & Time format

String

Output (Write) Specs

Key

Description

Data Type

siteNameOut Site Name (or path, if part of a site group, ie sites/MySite). String

listNameOut

List Title

String

outputfolderpath

Output Folder Path

String

chunkRetries

How many times should 3Sixty attempt to start a chunked upload.

Integer

chunkRetryWait

How long to wait between checks for the target file when performing a chunked upload (milliseconds).

Integer


Related Articles

SharePoint API Endpoints

Managing SharePoint Permissions with Content Services

Retrieving SharePoint ID's Using Content Service