Question

3
Replies
119
Views
Ishara Wickramausrya (Ishara Derek)
Virtusa
Ishara Wickramausrya
Virtusa
LK
Ishara Derek Member since 2015 12 posts
Virtusa
Posted: January 22, 2021
Last activity: January 25, 2021
Posted: 22 Jan 2021 11:42 EST
Last activity: 25 Jan 2021 9:06 EST

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) { } }, '');

 

Pega Platform Case Management Healthcare and Life Sciences Lead System Architect