Discussion
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Turkiye Finans Kat?l?m Bankas?
TR
Last activity: 5 Sep 2015 3:35 EDT
call activity from javascript using post method
hi
how can I call activity from javascript using post method.
I used httpRequestAsynch(oSafeURL.toURL()) but I get an error because of big sized data.
example like this oSafeURL.put("StringInBase64" , FileAsBase64String);
FileAsBase64String parameter is below picture
how can I send this data to activity as parameter.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0ea0d77b-d43b-4a29-9ee1-3bdd2155a6ba.png?h=d74b095e&itok=kMbovT72)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-03/0ea0d77b-d43b-4a29-9ee1-3bdd2155a6ba.png?h=d74b095e&itok=kMbovT72)
Pegasystems Inc.
US
Hi Harunc61,
PRPC Activities only execute on the PRPC Application Server not in the Browser. You can trigger the execution of a PRPC Activity through a browser side Event as an Action using the PRPC Client Event Editor. You can learn more about how to use the PRPC Client event editor from this Help Topic: (https://community.pega.com/sites/default/files/help_v71/procomhelpmain.htm).
Regards,
Henry
Pega Academy
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Turkiye Finans Kat?l?m Bankas?
TR
hi
I can execute Activity from javascript but I can't send big data size using Get method. I want to use post method in javascript , how can I send big data sized parameter to activity.
![](https://accounts.pega.com/sites/default/files/pega-user-image/62/REG-62340.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/62/REG-62340.png?source=PUMINIT)
Pegasystems Inc.
US
Hi,
Have you tried the Run activity action from the Events and Actions tab on a control? can you provide some more info on the Use Case?
Regards,
Vinay
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Ai4Process
GB
Hi Harun,
i think you would have sorted this issue already.If not,solution - Create a HTML form at run time by document.createElement('FORM'); and attach all the parameters to it as elements and form.submit() using POST method in java script.
call this NonAutogenerated Section on Refresh through hidden section at invocation point.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
NIIT Technologies Limited
AU
Below code calls activity using POST.
var setPropURL = new URL([ClassName.ActivityName]);
var paramData = new URL();
paramData.put("ParamPropertyName","Value");
var callback;
var request = pega.util.connect.asyncRequest('POST', setPropURL.toURL(),callback,paramData.toEncodedPostBody());
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
BitsInGlass
IN
Hi,
how can I call activity from javascript?
-
Rim CHTOUROU
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tata Consultancy Services
IN
Hi, how to launch a new harness and activity from Javascript.?