sharepoint - Sharepoit c# how to update 'Approval workflow' programatically -


i need update 'approval workflow' status programmaticaly in picture. please me or orient me solution.

already tried below code:

hashtable ht = new hashtable(); ht["formdata"] = spworkflowstatus.completed; ht[spbuiltinfieldid.completed] = "true"; ht[spbuiltinfieldid.percentcomplete] = 1.0f; ht["com"] = "test comments"; ht["reviewed"] = "yes"; ht["sendsignoffemail"] = "yes"; ht["taskstatus"] = "approved"; bool succed = spworkflowtask.altertask(t splistitem, ht, true); 

attached image understand me better.

i prefer change task worklow workflow himself.

since worklow associated task. have change status of task in order instance of workflow approved.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -