Discussion
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.


Pegasystems Inc.
IN
Use callActivity function from expression editor.
It is present in Pega-rules utilites function library.


Pegasystems Inc.
IN
callActivity available in Pega-Rules is a void return type function.
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?
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());
Updated: 29 Dec 2015 16:22 EST
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)
Does anybody have any solution? I am using 7.1.7. Keep getting the above error.


Pegasystems Inc.
IN
would OOTB function pxExecuteAnActivity helps?
Solution: Use executeactivity function instead of CallActivity
hi,
can anyone give the example ?
i have tried , but failed :D.
what it should beused ? (screen shot)


Citizens Bank
US
You can use function pxExecuteAnActivity to call an activity from a Data transform like below
use Param.Activity === @Utilities.pxExecuteAnActivity(PageName,ActiviyName) is DT
we need to write a custom function to call activity from data transform.