locked
Deploy custom workflow and custom activity to CRM 2011 On Line RRS feed

  • Question

  • Hi guys,

    Could I delopy  custom workflow and custom workflow activity to CRM 2011 On Line?

    I heard that custom workflow activity must be registered as sandbox mode to CRM.

    I am not sure that custom workflow and custom workflow activity can be deployed to CRM On line.

    Thanks,

    Cheney

    Monday, January 28, 2013 2:24 AM

Answers

  • Custom workflow activities are supported for workflows and dialogs (processes) when built using Windows Workflow Foundation 4. Custom workflow activities created by using Windows Workflow Foundation 3.5 can only be used with workflows (not dialogs) in Microsoft Dynamics CRM 2011 (on-premises and IFD), and only when not registered in the sandbox (isolation mode). If you want to use your custom workflow activities with both workflows and dialogs, you must use Windows Workflow Foundation 4 to create the custom workflow activities, or update your older custom activities code to work with Windows Workflow Foundation 4. In addition, to register custom workflow activities in the sandbox (partial trust), your custom workflow activities must be built using Microsoft .NET Framework 4 PU3 (platform update 3) or .NET 4.5.

    Microsoft Dynamics CRM Online support for sandbox (partial trust) execution of custom workflow activities was added in the Microsoft Dynamics CRM December 2012 Service Update.

    Custom Workflow Activities (Workflow Assemblies) for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Monday, January 28, 2013 2:55 AM
    Moderator

All replies

  • Custom workflow activities are supported for workflows and dialogs (processes) when built using Windows Workflow Foundation 4. Custom workflow activities created by using Windows Workflow Foundation 3.5 can only be used with workflows (not dialogs) in Microsoft Dynamics CRM 2011 (on-premises and IFD), and only when not registered in the sandbox (isolation mode). If you want to use your custom workflow activities with both workflows and dialogs, you must use Windows Workflow Foundation 4 to create the custom workflow activities, or update your older custom activities code to work with Windows Workflow Foundation 4. In addition, to register custom workflow activities in the sandbox (partial trust), your custom workflow activities must be built using Microsoft .NET Framework 4 PU3 (platform update 3) or .NET 4.5.

    Microsoft Dynamics CRM Online support for sandbox (partial trust) execution of custom workflow activities was added in the Microsoft Dynamics CRM December 2012 Service Update.

    Custom Workflow Activities (Workflow Assemblies) for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Monday, January 28, 2013 2:55 AM
    Moderator
  • Hi Cheney,

    I think Custom WF Activities will not supported by CRM 2011 Online.

    So what exactly is the problem?

    In a nutshell, if you have CRM on-premise, then you will not see that much difference in the plug-in environment. But, if you are using CRM 2011 Online, you now have the ability to install plug-ins into a CRM organization in what is called a Sandbox, which restricts the actions your plug-in can perform.  Code within the Sandbox runs in partial-trust mode.

    Windows Workflow Foundation requires a full-trust environment in order to function properly. But, in order to provide any plug-in functionality within CRM Online, Microsoft has restricted that all custom code to the Sandbox for stability and security purposes.

    So, without full trust, we do not have the ability to install and run custom workflow activities on CRM Online.

     

    Additional Information

    Further research suggests that Microsoft is working to change this requirement in a future version of the Workflow Foundation, but I have yet to see any time frames.

    So this means that for the moment, our custom workflow activities are stuck in on-premise land.

    Hope its helpful.

    Please make a vote if this helps you.


    Warm Regards, Suresh Kumar D

    Monday, January 28, 2013 4:48 AM
  • Hello,

    If your organization is upgraded to Rollup 12, you should be able to use custom workflow for your online, Check this for new enhancement which part of the Rollup 12


    Contact Me
    Follow me on Twitter
    My Facebook Page
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Monday, January 28, 2013 5:18 AM
    Moderator
  • Monday, January 28, 2013 11:03 AM
    Moderator