Question
3
Replies
44
Views
Virtusa
Posted: January 22, 2021
Last activity: January 25, 2021
Retrieve Params from JavaScript
Iam calling and activity from Javascript using below. On that activity Im setting some Parameters which I need to access from calling Javascript once the activity is done. Since I need to pass that parameter for another Javascript function.
var oSafeURL = new SafeURL("Class.ActivityName");
oSafeURL.put("pzPrimaryPageName", "pyWorkPage");
oSafeURL.put("PageName", "pyWorkPage");
oSafeURL.put("flowName", flowName);
oSafeURL.put("flowAction", "flowAction");
var run= pega.util.Connect.asyncRequest("POST", oSafeURL.toURL(),{
success: function (data) {
*** Here I need to access the Parameters set from the activity****
failure: function (data) { } }, '');
@IsharaDerek U can use the Show-Property Method in the activity. The activity will pass the response to the client session where it is invoked from.