Monday 25 March 2013

How to Call Workflow from event Receiver in share point


 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