This is the error I receive when attempting to use stopWorkflow in an external NodeJS API:
my execution:
sp.list("ListName","http://company.com/").stopWorkflow({ID:6736, workflowName:"2010 Workflow"});
the error:
(node:14288) UnhandledPromiseRejectionWarning: ReferenceError: document is not defined
at C:\Repos\node_modules\sharepointplus\dist\lists\stopWorkflow.js:50:7
at new Promise (<anonymous>)
at new Wrapper (C:\Repos\node_modules\core-js-pure\internals\export.js:15:24)
at C:\Repos\node_modules\sharepointplus\dist\lists\stopWorkflow.js:48:12
(node:14288) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was
not handled with .catch(). (rejection id: 2)
This is the error I receive when attempting to use stopWorkflow in an external NodeJS API:
my execution:
sp.list("ListName","http://company.com/").stopWorkflow({ID:6736, workflowName:"2010 Workflow"});the error: