# Calling a pagelist inside pagelist in when rule

**URL:** <https://forums.pega.com/t/calling-a-pagelist-inside-pagelist-in-when-rule/4181>\
**Category:** General\
**Tags:** pega-platform, data-integration\
**Created:** [March 20, 2023, 6:47am UTC](https://forums.pega.com/t/calling-a-pagelist-inside-pagelist-in-when-rule/4181 "2023-03-20T06:47:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekAP](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@AbhishekAP](https://forums.pega.com/u/AbhishekAP)\
**Post date:** [March 20, 2023, 6:47am UTC](https://forums.pega.com/t/calling-a-pagelist-inside-pagelist-in-when-rule/4181/1 "2023-03-20T06:47:23Z")

</div>

Hi Mounika,

I saw your comment on one pdn article for calling a pagelist inside a pagelist,

[How to use IsInPageList function in which pagelist contains another pagelist | Support Center (pega.com)](https://support.pega.com/question/how-use-isinpagelist-function-which-pagelist-contains-another-pagelist)

Did you got any solution for this.

Thanks in advance.

Abhishek Pabitwar

---

<div class="post-metadata">

**Author:** ![abhiraj](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/abhiraj/32/10434_2.png) [@abhiraj](https://forums.pega.com/u/abhiraj)\
**Post date:** [March 20, 2023, 7:40am UTC](https://forums.pega.com/t/calling-a-pagelist-inside-pagelist-in-when-rule/4181/2 "2023-03-20T07:40:03Z")

</div>

@AbhishekPabitwar

we cannot use this function directly. Since you want to check the logic inside when only, you can take below mentioned approach:

Create a DataPage of type page. (Use some property (say ValueExist) which will return true if value exist in the embedded pagelist else, false) - Use this data page in the when rule

Use a DT as a source. In DT

1. set ValueExist as false

2. For Each Page In -to loop over first Page list

2.1 when IsInPageList(PropertyValue,Property,PageList2).

2.1.1Set ValueExist to true

- You can also parameterize the property values to make it reusable

---

<div class="post-metadata">

**Author:** ![abhiraj](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/abhiraj/32/10434_2.png) [@abhiraj](https://forums.pega.com/u/abhiraj)\
**Post date:** [March 30, 2023, 10:57am UTC](https://forums.pega.com/t/calling-a-pagelist-inside-pagelist-in-when-rule/4181/3 "2023-03-30T10:57:58Z")

</div>

@AbhishekPabitwar

is this issue resolved?
