How to start an Approval workflow programmatically in the InfoPath form code? Create a web reference that points to http://yourSiteUrl/_vti_bin/workflow.asmx . Configure an Approval workflow in your form library and capture the template id. From form library settings->workflow settings, click the workflow name, right click in the page to View Source. Search for “templateid”….