I want to develop a workflow for a SharePoint Publishing Page Library.
When someone approves the page, I want to trigger this workflow and record the approver name, URLl and page status to a custom database.
How can I get approver name and page status? Could you please advise me?
This is my current testing code:
public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();
public Guid Task1_Id = default(System.Guid);
public SPWorkflowTaskProperties Task1_Properties = new SPWorkflowTaskProperties();
public CodeGenWorkflow()
{
InitializeComponent();
}
private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e)
{
int i = 0;
string url = workflowProperties.Web.Url + "/" + workflowProperties.Item.File.Url;
Task1_Properties.TaskType = 1;
//bool task1Approved = bool.Parse(Task1_Properties.ExtendedProperties["approved"].ToString());
}