I am trying to access information about running workflows in a SharePoint list but I am running into problems with the workflow services JSOM library. I am using the workflow services just like every example I can find, see code below:
var context = SP.ClientContext.get_current();
var web = context.get_web();
var servicesManager = SP.WorkflowServices.WorkflowServicesManager.newObject(context, web);
var instanceService = servicesManager.getWorkflowInstanceService();
While executing the code, the last line in the above snippet throws an exception
TypeError: this.get_context is not a function.
}, "sp.workflowservices.js"); }, "sp.runtime.js"); }, "sp.js"); I'll will modify the code to try the SOD approach and see if makes a difference though. – Travis L Jun 19 '15 at 20:07