oSafeUrl = new SafeURL("ClassName.ActivityName");
var request = pega.util.Connect.asyncRequest('GET',oSafeUrl.toURL());
But by using this, the activity is not being called during the initial log in of the requestor session.
Once the requestor session is completely created, then the activity is called successfully on all subsequent calls.
Any help on this will be much appreciated. Thanks in advance.