SharepointOnlineDeletionHandler

Description

The ActionHandler SharepointOnlineDeletionHandler deletes all files and folders from SharePoint-Online for the given processInstance.

Class

com.dooris.bpm.actionhandler.SharepointOnlineDeletionHandler

Properties for SharePoint Connection must be enabled.

Screenshot 2024-08-05 160120.png

Parameter

Description

Default value

Example

Parameter

Description

Default value

Example

includeAllRelatedInstances

Delete everything in all softlinks/subprocesses and mainprocesses

false

All the related instances file and folders will be deleted from the documents tab and SharePoint after the task is completed.

deleteMainProcessFolder

Delete the mainprocess folder if dms-mainprocess-storage=read,write is used

false

All the main process files and folders will be deleted from the documents tab and SharePoint after the task is completed.


Use case: After adding the SharePointOnlineDeletionHandler to the task, you can start the process instance and then add a document.


Screenshot 2024-08-05 194355.png

The document is now successfully displayed in the Sharepoint files list.

After the document is added, the task can be completed.


Once the task is completed, the document is successfully removed from both the Documents tab and the SharePoint files list.







Â