AvijitC7 Member since 2019 1 post
CNO Financial Group
Posted: 10 months ago
Last activity: 10 months 2 weeks ago

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 Interface
Share this page LinkedIn