Workflow invoking a provider-hosted addin

Copper Contributor



We need to automatically create tasks in a task list once a list item has been created in the main list, and to fine-tune the permissions of the created tasks (at the individual task level).


In theory, all of this could be achieved with a SharePoint workflow, and we actually have done something like this before. Still, a huge downside to this approach is an enormous amount of HTTP calls to SharePoint Web APIs to set up all the permissions correctly (we use 2013 workflows where impersonation is not an option), as well as overall complexity of the resulting workflow.


Using remote event receivers instead looked like a good idea at first, but the fact that there is no delivery guarantee for list item events makes this approach totally infeasible for us.


So, I have come up with an idea to use a combination of:


  • a workflow that is guaranteed to be invoked after a list item has been created
  • a remote web service registered as a provided-hosted add-in that would do all the heavy lifting via CSOM

The workflow would invoke the remote web service via HTTP and handle failures / retries (or, we could use a message queue to decouple the workflow and the remote web service).


Do you think if this is a good idea that is worth implementing?

0 Replies