Call Activity with Parameter
Hello,
I have to call an activity with parameter from an HTML section. I have tried the following code but it didn't work. Any idea what is wrong? Or what is the proper way of doing so? Noting that "User" is the Activity parameter.
function callActivity(){
var UserName = 'Test';
var oSafeURL = new SafeURL();
oSafeURL.put("pyActivity","Code-Security.ForgetPassword");
oSafeURL.put("User", UserName );
pega.util.Connect.asyncRequest('POST', oSafeURL.toURL(),'');
}
***Updated by moderator: Lochan to add Categories***