How to create task for more than one users? - InfoPath Dev
in

InfoPath Dev

How to create task for more than one users?

Last post 06-03-2009 07:15 AM by sgandhi. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-03-2009 07:15 AM

    How to create task for more than one users?

    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

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.