Discussion
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
American Express
US
Last activity: 4 Oct 2018 11:08 EDT
Calling Activity from Data transform
Can actvity be called from Data transform?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Likes (3)
Saikrishna Chenumalla KANCHIPATI ARJUN VARA KANCHIPATI SriHarsha Koppula -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
we need to write a custom function to call activity from data transform.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
NIIT Technologies Limited
AU
Use callActivity function from expression editor.
It is present in Pega-rules utilites function library.
-
Vasipalli Lavanya Pothuraju Goli Yechuri Bhavya sri
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
callActivity available in Pega-Rules is a void return type function.
-
Kamalapuri Hari Prasad
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
American Express
US
Thanks Ravi and Sahu! Yes, I checked that option from expression builder. But that can be used to call built-in function like update status. How can custom activities be called from DT?
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
NIIT Technologies Limited
AU
You can call custom activities as well from data transform using callActivity() function.
Pass primaryPage and activityName to callActivity.
Syntax will be-
pega_rules_utilities.callActivity(PrimaryPageName, ActivityName, tools.getParameterPage());
-
Adarsh Madanala Shridhevi K
Updated: 29 Dec 2015 16:22 EST
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tata Consultancy Services Ltd
IN
above is not working , i am always getting below error , can someone help for this
"@(Pega-RULES:Utilities).callActivity(MyServicePage, SetCountries, tools.getParameterPage())"
[seeking]
@(Pega-RULES:Utilities).callActivity(ClipboardPage,ClipboardPage,PublicAPI)
[candidate functions are]
@(Pega-RULES:PegaRulesUtilities).callActivity(ClipboardPage,String,void)
@(Pega-RULES:Utilities).callActivity(ClipboardPage,String,void)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689977000/ff73c509-5efe-4516-acf4-ab75ee51f16d.png?itok=ChWvyIQP)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689977000/ff73c509-5efe-4516-acf4-ab75ee51f16d.png?itok=ChWvyIQP)
ME Bank
AU
Does anybody have any solution? I am using 7.1.7. Keep getting the above error.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
would OOTB function pxExecuteAnActivity helps?
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689977000/ff73c509-5efe-4516-acf4-ab75ee51f16d.png?itok=ChWvyIQP)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689977000/ff73c509-5efe-4516-acf4-ab75ee51f16d.png?itok=ChWvyIQP)
ME Bank
AU
Solution: Use executeactivity function instead of CallActivity
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/332/REG-331789.png?source=PUMINIT)
SINARMASMSIGLIFE
ID
hi,
can anyone give the example ?
i have tried , but failed :D.
what it should be used ? (screen shot)
-
S MANOJ KUMAR REDDY
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689993000/25c14a01-b67d-4012-9e10-f0b1bc758b55.jpg?itok=KgohlaQt)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689993000/25c14a01-b67d-4012-9e10-f0b1bc758b55.jpg?itok=KgohlaQt)
Tata Consultancy Services
US
You can use function pxExecuteAnActivity to call an activity from a Data transform like below
-
S MANOJ KUMAR REDDY SURATA RAJANI Pothuraju Goli PAVAN PHANEENDRA MANIKUMAR JAKKAMSETTI
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Novitates
IN
use Param.Activity === @Utilities.pxExecuteAnActivity(PageName,ActiviyName) is DT
-
Md Sharique Akhter Aulia Rahmadi pedapatnam vamsiram Zenas Morris S MANOJ KUMAR REDDY and 3 More