I have a SharePoint Designer Workflow that spawns a task when a new item is created in a SharePoint list. I want to be able to complete the task and the workflow programmatically. I'm able to complete the task successfully, but the workflow itself refuses to terminate and is always listed as "In Progress", no matter what I try.
I've seen many people ask this question, but I can't get it to work. What am I missing?
Here's what I'm currently trying:
// get the current task item
SPListItem li = SPContext.Current.ListItem;
// mark the task complete
View Complete Post