Question

4
Replies
3155
Views
Close popover
Ghina Hamdan (GhinaH83)
Murex

Murex
LB
GhinaH83 Member since 2016 41 posts
Murex
Posted: January 27, 2017
Last activity: January 30, 2017
Closed

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***

Data Integration Java and Activities User Experience
Moderation Team has archived post