Hi,
I am adding SharePoint workflow activity at runtime, depends on configuration done by user in Workflow Association form.
I am adding simple log to history activity but getting error “This Operation can not be performed at runtime.”
What can be issue, how to resolve this issue? Any idea?
I have just taken sample of Log activity to adding at runtime.
I want to add the SharePoint Workflwo Activities runtime. Basically I am working on module wherein user can define the workflow at runtime.
So is there any way to add the activities runtime?
For Eg. for sending email can I have following code ?
SendEmail mail = new SendEmail();
mail.To = "test@abc.com";
mail.Subject = "test mail";
mail.Body = "Test mail from workflow";
mail.From = "test@abc.com";
mail.Enabled = true; this.
Activities.Add(mail);