Ads

Monday, 1 July 2013

C# code to Call Workflow from event Receiver in sharePoint

 SPWorkflowAssociation associationTemplate = parentList.WorkflowAssociations.GetAssociationByName("Data Processing", new CultureInfo
                                                                                    (Convert.ToInt32(parentList.ParentWeb.RegionalSettings.LocaleId)));
                                       oSite.WorkflowManager.StartWorkflow(oSourceListItem, associationTemplate, String.Empty);

No comments:

Post a Comment

Ads