1.We are using an infopath form for creating a purchase order.
2.It has multiple approvers and number of approvers can be multiple and are added in a repeating table.
3.This form is published to a form library.
4.A visual studio workflow is created on this form library.
5.As an item is added to the library an email is sent to first approver and a task is created to approve the item. The infopath form itself has a dropdown to approve the PO.
Our requirement is that when the first approver selects approved in the dropdown on the PO form and submits the form, it should update the task to complete which will kickin in another task sending email to the next approver.
fyi - We are not using the infopath task approval form.
In a nutshell we want to update task status of an item upon submit of the infopath.
A code sample would be great.
Thanks,
Amaresh