Close popover
Avijit Chatterjee (AvijitC7)
CNO Financial Group

CNO Financial Group
AvijitC7 Member since 2019 1 post
CNO Financial Group
Posted: November 12, 2019
Last activity: November 12, 2019

Execute Activity asynchronously from JavaScript function

The below mentioned code is being used to invoke an activity asynchronously from JavaScript function.

====================Code Start====================

var activityName = "<CLASS NAME>.<ACTIVITY NAME>";
var oSafeUrl = new SafeURL(activityName);
var strUrl = oSafeUrl.toURL();

var returnData = httpRequestAsynch(strUrl, null, 50, 100);

====================Code End====================

Can you please explain the parameters used in the function “httpRequestAsynch”? Also can you please confirm whether there is any restriction on activity execution time? This is to make sure this code works for all scenarios while it takes long time to execute the activity.

User Experience
Moderation Team has archived post,
Close popover 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.