locked
Task status "Request Change" programmatically RRS feed

  • Question

  • I am trying to perform the action "Request Change" on a task pro grammatically. I am able to approve or reject the task however not able to perform "Request Change" and give new assignee name. Can anyone helpme on this.
    Thursday, January 2, 2014 2:01 PM

All replies

  • Can you provide some more information about how you are defining "Approve, Reject, and Request Change"? Are these options in a custom field or are you relying on the OOTB Content Approval infrastructure (Approve, Reject, Pending")?

    Dimitri Ayrapetov (MCSE: SharePoint)

    Friday, January 3, 2014 7:18 PM
  • I can Approve The task using this code :

    SPWorkflowTask.AlterTask(task, htData, fSynchronous)

    But what i want now to complete Request Change process programmatically, my approval workflow was built using sharepoint designer

    Saturday, January 4, 2014 9:08 AM
  • In your example, the task property is an SPListItem. Are you trying to update a field within the task item or do something differently?

    Dimitri Ayrapetov (MCSE: SharePoint)

    Sunday, January 5, 2014 8:44 PM
  • Yes I'm trying to update in task item.
    Monday, January 6, 2014 7:27 AM
  • Which error are you seeing when you update the relevant field in the "task" SPListItem?

    Dimitri Ayrapetov (MCSE: SharePoint)

    Wednesday, January 8, 2014 2:24 AM
  • I want to complete "Request Change" process programmatically
    Wednesday, January 8, 2014 5:39 AM