Forum Discussion
MCAS Webinar Q&A
When MCAS applies a label to a SharePoint document, it triggers a workflow (If configured inside the library). Would you alter MCAS in future to counter this (like a setting to suppress the workflow). In SP coding terms: SPItem.DisableWFEvents() --> SPItem.Update() --> SPItem.EnableWFEvents()
Can you please give me more details about this ?
What do you mean by triggering a workflow ? Are you talking about a workflow triggered by modification activities ?
- Ananda Prasad BandaruMar 20, 2019Brass Contributor
Hi,
When we label a document (Present in a SP Library with workflows attached & versioning enabled), the related workflow gets initiated which would trigger a complex business process.
We have many site collections with many workflows and we cannot change each workflow to have a condition for "Modified By" == "SharePoint App".
We just need a way to ignore SP workflow triggering when the document is updated by MCAS account (SharePoint App)
- Sebastien MolendijkMar 22, 2019
Microsoft
Thanks for the details.
I don't see how to do this at the MCAS side as it sends the instruction of applying the classification to SharePoint to.
The only solution I see is to have a specific exception configured at the workflow level, using a filter on the user account, as you said.
Why can't you modify the workflow ? I see this case as part of the workflow design phase.
- Ananda Prasad BandaruMar 28, 2019Brass ContributorTrue but we have 100 of workflows spread across enterprise and I believe the OOB SP workflows don't have this capability. (SP designer WF would have this).