Hi,
At the time of approval, I want to show list items in non-editable (view) mode. I have created worfklow in Visual studio. It works fine.
But I also have to show Associated List items on the approval task form.
My Question is –
How to show associated list item on out of the box task approval form using visual studio.
My function for createTask activity is as follows:
private void createTask1_MethodInvoking(object sender, EventArgs e)
{
CreateTask task = sender as CreateTask;
task.TaskId = taskID;
SPWorkflowTaskProperties workflowTaskProperty= new SPWorkflowTaskProperties();
workflowTaskProperty.Title = “Please Review: ” + workflowProperties.Item.Title;
workflowTaskProperty.AssignedTo = “Administrator”;
workflowTaskProperty.TaskType = 1;
workflowTaskProperty.ExtendedProperties[“ows_AllowDelegation”] = “True”;
workflowTaskProperty.ExtendedProperties[“ows_AllowChangeRequests”] = “True”;
task.TaskProperties = workflowTaskProperty;
}