# About pre-activity or pre-data transform

**URL:** <https://forums.pega.com/t/about-pre-activity-or-pre-data-transform/3192>\
**Category:** General\
**Tags:** pega-academy\
**Created:** [September 5, 2022, 9:01am UTC](https://forums.pega.com/t/about-pre-activity-or-pre-data-transform/3192 "2022-09-05T09:01:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxonL16591286](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@MaxonL16591286](https://forums.pega.com/u/MaxonL16591286)\
**Post date:** [September 5, 2022, 9:01am UTC](https://forums.pega.com/t/about-pre-activity-or-pre-data-transform/3192/1 "2022-09-05T09:01:17Z")

</div>

Hi in below course,

> **[Event processing with action sets | Pega Academy](https://academy.pega.com/topic/event-processing-action-sets/v2/in/29826/30571)**

It mentions below:

///

- If the pre-activity or pre-data transform runs in the same context as the section refresh, configure them in the refresh section action.
- Modify the content of your pre-activity if needed when running it in the context of the refresh section.

///

Pls refer to attached picture.

may I know what are “pre-activity” and “pre-data transform”? could you help to explain the concept? Thanks.

 ![PEGA-Q4.JPG](https://pega1.discourse-cdn.com/pega/original/1X/4304ac73dae25ea39afa4570d6de46969ba51bfd.jpeg)

---

<div class="post-metadata">

**Author:** ![BhanuPrakash\_G](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@BhanuPrakash\_G](https://forums.pega.com/u/BhanuPrakash_G)\
**Post date:** [September 5, 2022, 9:16am UTC](https://forums.pega.com/t/about-pre-activity-or-pre-data-transform/3192/2 "2022-09-05T09:16:57Z")

</div>

@MaxonL16591286 I guess this is what the it is trying to say, minimize the number of calls to the server by wrapping them.

If this is your configuration, there would be 3 calls to the server.

 ![cap1.png](https://pega1.discourse-cdn.com/pega/original/2X/f/f116fe1112f7705c0dd22265f3f430965f31c537.png)

To minimize the number of calls, the run data transform and run activity which are running before the refresh-this section action can be wrapped up inside it.

 ![cap1.png](https://pega1.discourse-cdn.com/pega/original/2X/0/0f4da867d80ed703f92902e68f3fdad1d0b5000d.png)
