Question

6
Replies
297
Views
Sai Charan K (Sai Charan)
Evoke Technologies Private Limited
Technical Associate
Evoke Technologies Private Limited
IN
Sai Charan Member since 2018 5 posts
Evoke Technologies Private Limited
Posted: December 9, 2019
Last activity: December 11, 2019
Posted: 9 Dec 2019 8:11 EST
Last activity: 11 Dec 2019 6:08 EST
Closed

Activity not being called from JavaScript on initial login

Hi All,

I am calling an activity from JavaScript using the below code -

oSafeUrl = new SafeURL("ClassName.ActivityName");
oSafeUrl.put("Param",value);

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.
The JavaScript was placed in multiple locations and tried starting with Scripts and Styles tab of the Harness Rule, included in HTML fragments in the pyPortalHeader section, included non-auto generated section in the pyPortalHeader section, etc., but none have worked. Not just activities but even Data Transforms could not be called on initial load.
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.

Thanks,

Charan

Low-Code App Development Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.