This content has been archived.

Table of Contents

runActivity: Public JS API for control actions


Run activity from script.


var options = {<br />
name: “activityName ",<br />
parameters: [{name: "
param1", value: "Page1.prop1", isProperty: true}, {name: "param2", value: 123, isProperty: false}],<br />
contextPage: "
page1.page2 ",<br />
event: eventObject<br />



This API accepts a JavaScript object which can have the following key-values.

  • name: The name of the activity to be run.
  • parameters: Optional. The array of the activity parameters in JSON format.
  • contextPage: Optional. The page that provides the context in which the activity will run. When not set, the activity will run in the primary page context.
  • event: The event refers to a DOM eventObject.
Suggest Edit

50% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.