Hi,
We are currently trying to make an infopath button complete a task associated to the form submission workflow, so when a user clicks a button, it updates the task to complete, making the SharePoint Designer workflow continue.
We have seen many posts in relation to this to be able to mark a task as completed using AlterTask and UpdateItem, but no method seems to actually mark the task as completed to make the workflow continue. These solutions just seem to update the task information. e.g. These update the task details but did not make the task completed to continue workflow;
data[SPBuiltInFieldId.TaskStatus] = "Completed";
data[SPBuiltInFieldId.Completed] = true;
data[SPBuiltInFieldId.PercentComplete] = 1;
data[SPBuiltInFieldId.WorkflowOutcome] = "Completed";
It looks like a few people are having this issue:
http://social.msdn.microsoft.com/For...6-e9000ce2ef24
We are looking to only use sharepoint designer workflows if possible. The environment is MOSS 2007 enterprise SP2.
Does anyone know how to code Task Completion? (like when you click on the complete task button with out of the box sharepoint)
