none
Custom Action in SharePoint Designer for SharePoint Online

    Question

  •   it is not possible to have Visual Studio based workflow in SharePoint.

      is it possible to have Custom Action installed so that we can use them in SharePoint Designer for SharePoint online??

      We have custom workflow logic to embed in our sharepoint online workflow.

      How do we achieve that?


    Shahid Roofi

    Wednesday, March 29, 2017 2:40 PM

All replies

  • It is possible to have a Visual Studio based workflow in SharePoint Online.  But wherever you build the workflow you can't include custom code in a workflow that is deployed to SharePoint Online.  To implement custom code for a SharePoint Workflow you should implement the custom code in an Azure web service or function that can be invoked using a REST call from the SharePoint workflow. TAke a look at the following article for more info:

    https://msdn.microsoft.com/en-us/pnp_articles/call-web-services-from-sharepoint-workflows


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Wednesday, March 29, 2017 3:09 PM
  •  Can you elaborate when you are saying it is possible to have Visual Studio based workflow in SharePoint Online.

     Is it through Add-In? but in that case, workflow would be Provider hosted ?


    Shahid Roofi

    Wednesday, March 29, 2017 8:11 PM
  • It doesn't have to be deployed as an Add-in.  As long as the workflow doesn't contain any code (its declarative) then it can be deployed as a sandbox solution and activated via a feature. Sandbox solutions that contain code were deprecated and disabled.  Sandbox solutions that are fully declarative were not.  Here's an article on developing workflows using Visual Studio.

    https://msdn.microsoft.com/en-us/library/office/jj163199.aspx

    But it can also be done with a SharePoint App (it doesn't need to be a provider hosted app if it doesn't have code).  Here's a walkthrough on deploying a workflow with a SharePoint App.

    http://www.vrdmn.com/2014/09/integrated-workflow-apps-deploy.html


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Thursday, March 30, 2017 12:47 PM