If you doing same using event receivers, note that don't disable event firing.
Before calling this funciton, make sure that event firing is ENABLED. That’s because SPWorkflowTask.AlterTask() needs to fire events……
Use below C# code to Approve Task Item programmatically
ht["TaskStatus"] = "Approved";
attribute that solved my problemTo Reject Task Item Replace below lines in above code.....
ht[SPBuiltInFieldId.
ht["TaskStatus"] = "Rejected";
No comments:
Post a Comment