Question

3
Replies
44
Views
Close popover
Ishara Wickramausrya (IsharaDerek)
Virtusa
Senior System Architecht
Virtusa
LK
IsharaDerek Member since 2015 11 posts
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) { } }, '');

 

Pega Platform Case Management Healthcare and Life Sciences Lead System Architect