Trigger SharePoint Designer Workflow using SP Services

There are times when you want to first process some information in your code and then pass those information as parameter in the workflow and start it. Fortunately you can trigger the SharePoint workflow using SP Services You will need 2 files jquery.SPServices.min.js spservices-startworkflow.js Include the below references:

Below is the code: