Question
1
Replies
291
Views
Perseus
Posted: July 23, 2018
Last activity: July 23, 2018
Closed
How to call Desktop API in activity - pega.desktop.closeAllDocuments
Hi,
What is the syntax to call desktop API in activity step.
I want to call pega.desktop.closeAllDocuments in activity
#Helpme
Hi Paul,
Pega.desktop.API.js consists of all javascript methods. We can't call a Javascript method from activity java step or any of the activity methods.
As an alternative you use a runscript action on any of the control and call "pega.desktop.closeAllDocuments".
else
From userworkform(OOTB HTML fragment) you can write custom javascript function and call Pega.desktop.closeAllDocuments API. refer the function name in runscript of the control.
Regards,
Naveen