Thank you for the feedback Marc ...
Follow up question if I may ...
From the results in the list, I see that I am executing the workflow against the ID (15) used for the "item" .. however .. I keep receiving back "Exception of Type ... was thrown" and an error in SP for the workflow result in the view ...
There are two init params on the workflow ... One has a default value .. the other I pass in as a key ...
Follow up question if I may ...
From the results in the list, I see that I am executing the workflow against the ID (15) used for the "item" .. however .. I keep receiving back "Exception of Type ... was thrown" and an error in SP for the workflow result in the view ...
There are two init params on the workflow ... One has a default value .. the other I pass in as a key ...
Have you seen teh Exception of Type error before?
var key = "Jeff";
alert ("key value = " + key);
var wfParms = "<Data><p_serialization>" + key + "</p_serialization></Data>"
alert("wfParms = " + wfParms);
//---------------------------------------------// Invoke workflow for random Item ID ... passing in the parm
$().SPServices({
operation:"StartWorkflow",
async: true,
item:"https://server.company.com/sites/Ops/zDev/Lists/Status_Tracking_Metrics/15_.000",
debug:true,
templateId: "{e718f487-1523-4666-908f-1fe663a8c25c}",
workflowParameters: wfParms,
completefunc: function(xData, Status) {
alert(xData.responseText);
}
});