node-red-contrib-sharepoint v1.0.3
README
A simple node for MS SharePoint REST API (NTLM authentication). Supports GET and POST methods.
Install
Install latest release: npm i -g node-red-contrib-sharepoint
Inputs
msg.spURL string
End point REST. Specified in the config(URL service) or passed in stream mode. URL must contain "/_api/" path.
Example: http://server/site/_api/lists/getbytitle('listname')
msg.headers Object
Special headers for SharePoint POST request (methods, etc). You must specify them yourself. X-RequestDigest not required to specify, it is written automatically.
Example: `msg.headers= { 'X-HTTP-Method': 'MERGE','IF-MATCH': '' }`* Additional info
msg.payload Object
Body(data) for our POST request.
Example:
msg.payload = { '__metadata': { 'type': 'SP.List' }, 'Title': 'TestList' }
Outputs
msg.sharepointresult Object
First output. Result. The object that is returned by the service.
msg.error Object
Second output. Error. The error that service returned or Nodejs platform error.
Details
The GET method does not need to be specified msg.headers and msg.payload, the request parameters are transmitted in the URL itself (path, filters, etc.)
