Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
IBM
CN
Last activity: 1 Mar 2023 20:59 EST
Run script and local action from a data transform or an activity
About how to run script from a data transform or an activity, I have found some page like
https://stackoverflow.com/questions/22856279/call-external-javascript-functions-from-java-code
May I know any newer/simpler ways to do so? My current version is Pega 8.6.6.
And how about run local action from an activity?
My purpose is to run script
"pega.ui.HarnessActions.doAttachmentSingleClick"
for downloading file and a local action to show a modal dialog.
They can be called normally from an action set, however caused by when issue as below link, we want to move them to an activity
https://community.pega.com/support/support-articles/local-action-running-all-conditions?
Thanks.
***Edited by Moderator Marissa to add Capability tags***
***Edited by Moderator: Pooja Gadige to add capability tag***