# Code-Pega-List Class

**URL:** <https://forums.pega.com/t/code-pega-list-class/4072>\
**Category:** General\
**Tags:** system-administration, system-architect, pega-platform\
**Created:** [February 28, 2023, 6:33am UTC](https://forums.pega.com/t/code-pega-list-class/4072 "2023-02-28T06:33:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [February 28, 2023, 6:33am UTC](https://forums.pega.com/t/code-pega-list-class/4072/1 "2023-02-28T06:33:50Z")

</div>

When we create any activity in Code-Pega-List class??

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/22727_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [February 28, 2023, 7:50am UTC](https://forums.pega.com/t/code-pega-list-class/4072/2 "2023-02-28T07:50:17Z")

</div>

@AbhishekC1725 Whenever pega does a search and get a list of results, in the run time pega uses a page of class Code-Pega-List and output will be held in pxResults. So whenever we want to search something and gets results we would need to create activity in code-pega-list class because in the run time the step page context will be code-pega-list and as activity is created in code-pega-list context pega will execute the activity which we created. For eg:- we have created a Data page and structure is List(in pega terms it is a search and get results mechanism), if you select source as activity and click on gear icon to create activity, it will be created in Code-pega-List class.

You can refer below URL also for pdn explanation

[https://community.pega.com/sites/pdn.pega.com/files/help\_v73/zstandardrules/rule-obj-propertycode-pega-list.htm](https://community.pega.com/sites/pdn.pega.com/files/help_v73/zstandardrules/rule-obj-propertycode-pega-list.htm)

---

<div class="post-metadata">

**Author:** ![mrits1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mrits1/32/12113_2.png) [@mrits1](https://forums.pega.com/u/mrits1)\
**Post date:** [February 28, 2023, 8:04am UTC](https://forums.pega.com/t/code-pega-list-class/4072/3 "2023-02-28T08:04:12Z")

</div>

@AbhishekC1725 Hi,

Whenever you Create a Data Page of list type you have to create your source which is activity/data transform in code-pega-list.

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [February 28, 2023, 3:51pm UTC](https://forums.pega.com/t/code-pega-list-class/4072/4 "2023-02-28T15:51:22Z")

</div>

@Anoop Krishna Thanks for information

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [February 28, 2023, 3:52pm UTC](https://forums.pega.com/t/code-pega-list-class/4072/5 "2023-02-28T15:52:02Z")

</div>

@SrinidhiM Thanks for explanation
