I am facing strange issue while starting workflow from Javascript/Jquery using SPServices
Please find attached Screenshot for better understanding.
I have tried all the versions of SPServices(from 0.5.4 to 2014 ) and Jquery(from 1.7 to 1.11) with combinations.
but I am still not able to get it through
getting message from browser that SPServices is undefined.
Here is my code.
<script type ="text/javascript" src = "https://code.jquery.com/jquery-1.10.2.min.js">>
<!--script type ="text/javascript" src = "https://Server/sites/Test_Environment/Shared%20Documents/SPServices-0.5.4.min.js"></script--><script type ="text/javascript" src = "https://Server/sites/Test_Environment/Shared%20Documents/jquery.SPServices.min.js">>
function StartWorkflow(ItemURL, ItemID)
{
}
Please find attached screenshot and suggest me the solution.
![Image]()
Please find attached Screenshot for better understanding.
I have tried all the versions of SPServices(from 0.5.4 to 2014 ) and Jquery(from 1.7 to 1.11) with combinations.
but I am still not able to get it through
getting message from browser that SPServices is undefined.
Here is my code.
<script type ="text/javascript" src = "https://code.jquery.com/jquery-1.10.2.min.js">>
<!--script type ="text/javascript" src = "https://Server/sites/Test_Environment/Shared%20Documents/SPServices-0.5.4.min.js"></script--><script type ="text/javascript" src = "https://Server/sites/Test_Environment/Shared%20Documents/jquery.SPServices.min.js">>
function StartWorkflow(ItemURL, ItemID)
{
alert(ItemURL);
$().SPServices({
operation: "StartWorkflow",
item: ItemURL,
templateId: "{8b65eb82-2890-486b-b63c-bee77c1c1779}",
workflowParameters: "",
async: true,
completefunc: function () {
SP.UI.Notify.addNotification("Workflow process started on selected item.", false);
}
});
alert("Done");}
Please find attached screenshot and suggest me the solution.