Question
Atos
Atos
IN
Atos
Posted: Jun 17, 2024
Last activity: Jun 20, 2024
Last activity: 20 Jun 2024 2:29 EDT
Solved
How to call an Activity from JavaScript?
Calling activity through javascript ?

Hi @MonikaS9010,
Please use the below code:
HashStringMapactivityKeys = new HashStringMap();
activityKeys.putString(“pxObjClass”, “Rule-Obj-Activity”);
activityKeys.putString(“pyClassName”, workclass);
activityKeys.putString(“pyActivityName”, “HistoryAndAttachments” );
tools.doActivity(activityKeys , workpage, tools.getParameterPage() );
Or you can use osafeURL to call an activity
Regards,
Prasad