Getting an exception while invoke datatransform from javascript
How to invoke datatransform from javascript, i tried using below references but it's showing an exception uncaught ReferenceError: pega is not defined.
var options = {
name: “dataTransformName ",
parameters: [{name: "param1", value: "Page1.prop1", isProperty: true}, {name: "param2", value: 123, isProperty: false}],
contextPage: "page1.page2 ",
event: eventObject
};
pega.api.ui.actions.runDataTransform(options);
any library will be required or pega need to be defined to execute?
Thanks.