Migrating SharePoint 2010 workflow custom activity to SharePoint 2013

 This post is a contribution from Vitaly Lyamin, an engineer with the SharePoint Developer Support team. For SharePoint 2010 custom activities to work in SharePoint 2013, the “authorizedType” node needs to be defined in a new sub-section “targetFx” under the “authorizedTypes” section. If this is not changed, an error will be encountered: ‘The type or…

3

HOW TO: Programmatically set/pass WorkflowContext from a Visual Studio workflow to a custom workflow action in SharePoint 2010

This post is a contribution from Himani Sharma, an engineer with the SharePoint Developer Support team. Scenario: You have a workflow custom action that you’d like to be used in SharePoint 2010 workflow.  This activity uses Microsoft.SharePoint.WorkflowActions.WorkflowContext to obtain WorkflowContext and hence use the workflow instance specific properties like ItemId, ListId, TaskListGuid, WorkflowInstanceId etc., Analysis:…

1