Hi,
I am creating the workflow to assign task for more than one users( users are coming from contact selector from infopath form). But when the create task block is executed the task is created only for the last person in the contact selector. Why? what happ to others ?
this is the code i am using to create task. (in VS 2008)
=======================================
private void createTask1_MethodInvoking(object sender, EventArgs e)
{
this.taskID = Guid.NewGuid();
for (int i = 0; i < acname.Count; i++)
{
this.taskProperties.AssignedTo = acname[i].ToString(); //THIS TAKES USERS FROM CONTACT SELECTOR EX: LITWAREINC\BrianC they are more than one.
this.taskProperties.TaskType = 0;
this.taskProperties.Description = "Please Approve new task: " + this.workflowProperties.Item.Name; //+ "</br>" + "The Due Date to approve this Task is on or before : " + this.workflowProperties.Item["Approval Due Date"].ToString();
this.taskProperties.Title = "Please approve new task: " + this.workflowProperties.Item.Name;
this.taskProperties.ExtendedProperties["Details"] = DateTime.Now.ToString() + ": \n" + this.workflowProperties.OriginatorUser.Name;
this.taskProperties.SendEmailNotification = true;
}
}
=======================================
Quick Help would be appreciated.
Thanks
Sumeet Gandhi