Save input and output documents from ProcessMaker into a SharePoint document library.
Homepage Repository npm Download
npm install pm2sp@0.0.3
Save input and output documents from ProcessMaker into a SharePoint.
Yarn
$ yarn add pm2sp
NPM
$ npm install pm2sp
Given an application/case UID, you can save its input and output documents:
const pm2sp = require('pm2js')
const config = {
pm: {
clientId: 'client id',
clientSecret: 'client secret',
workspace: 'processmaker workspace',
serverUri: 'serveruri'
},
sp: {
folder: 'sharepoint folder',
site: 'sharepoint site'
},
credentials: {
// Account should have access both in ProcessMaker and SharePoint
username: 'account username',
password: 'account password',
domain: 'account domain'
}
}
const archiver = pm2sp('appUid', config)