# Create a new page for each element in a  value list not working out correctly .

**URL:** <https://forums.pega.com/t/create-a-new-page-for-each-element-in-a-value-list-not-working-out-correctly/3179>\
**Category:** Pega-as-a-Service\
**Tags:** microjourney, cloud-services, pega-cloud, decision-management, pega-platform, senior-system-architect, case-management\
**Created:** [August 31, 2022, 9:38pm UTC](https://forums.pega.com/t/create-a-new-page-for-each-element-in-a-value-list-not-working-out-correctly/3179 "2022-08-31T21:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnanyaA2](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ananyaa2/32/8735_2.png) [@AnanyaA2](https://forums.pega.com/u/AnanyaA2)\
**Post date:** [August 31, 2022, 9:38pm UTC](https://forums.pega.com/t/create-a-new-page-for-each-element-in-a-value-list-not-working-out-correctly/3179/1 "2022-08-31T21:38:22Z")

</div>

I have a value list property (ApprovalLevels )

The value list has the following structure:

ApprovalLevels(1) = “One,Two”

ApprovalLevels(2) = “Three,Four”

Now I want to loop through this value list and create one page ‘for each element in value list’ , on the clipboard . and under that page the Value of ApprovalLevels() should be there in pyLabel property .

So I have looped through value list and used following function :

**@pxPageListFromStringCSV(ApprovalLevels().ApprovalsNewList,“pyLabel”,“TRG-Data-MyAPP”)**.

Issue :

Now the issue is instead of creating two pages(inside ApprovalsNewList) having the values (One,Two) and (Three,Four) respectively, it is creating 4 pages having four different (pyLabel)values i.e. One , Two , Three & Four Separately .

Is there any other way where It will ignore the comma and just create only 2 pages with the value exactly as mentioned above ??

Thanks in advance

---

<div class="post-metadata">

**Author:** ![JayaL722](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JayaL722](https://forums.pega.com/u/JayaL722)\
**Post date:** [September 1, 2022, 1:50am UTC](https://forums.pega.com/t/create-a-new-page-for-each-element-in-a-value-list-not-working-out-correctly/3179/2 "2022-09-01T01:50:28Z")

</div>

Hi @AnanyaA2

Loop through the value list. Directly append the value to the page list. You dont need any functions.

---

<div class="post-metadata">

**Author:** ![AnanyaA2](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/ananyaa2/32/8735_2.png) [@AnanyaA2](https://forums.pega.com/u/AnanyaA2)\
**Post date:** [September 5, 2022, 9:53pm UTC](https://forums.pega.com/t/create-a-new-page-for-each-element-in-a-value-list-not-working-out-correctly/3179/3 "2022-09-05T21:53:11Z")

</div>

@JayaL722 Thank you . It worked !
