CallActivity Vs pxExecuteActivity

Hi,

What is the difference betweens these 2 OOTB functions in pega CallActivity() Vs pxExecuteActivity() in pega.

Thanks In Advance.

Hi @AbhishekC1725

callActivity:

Description:call an activity
Ideally the activity name field should only contain the name of the activity.
But if we pass the classname also as part of the activityName parameter, the field is split and only the activityname is considered. The mentioned class name is not honoured. The classname is always taken from primarypage.

Usage: call an activity in one line of code rather than 4

pxExecuteAnActivity:

**Description:**Used to call the specified activity with ClipboardPage & activity name.
Passes the current parameter page only.

**Usage:**Used to call the specified activity with ClipboardPage & activity name.
Passes the current parameter page only.

when to use callactivity and pxexecuteanactivity

I hope this will help you

Thanks,

Ashok

@Bhumireddy Thanks for response.