private void sendFirstEmail_MethodInvoking(object sender, EventArgs e) { approvalProcessor = EnterpriseApprovalProcessorFactory.Create(workflowProperties.Site, workflowProperties.AssociationData); var emailDefinition = approvalProcessor.GetFirstMailDefinition(onWorkflowActivated1.WorkflowProperties.Item); sendFirstEmail.To = emailDefinition.To; sendFirstEmail.Subject = emailDefinition.Subject; sendFirstEmail.Body = emailDefinition.Body; }
private void logToHistoryFirstMailSended_MethodInvoking(object sender, EventArgs e) { approvalProcessor = EnterpriseApprovalProcessorFactory.Create(workflowProperties.Site, workflowProperties.AssociationData); logToHistoryFirstMailSended.HistoryOutcome = "Workflow executed " + approvalProcessor.GetTitle(); }