Loop through a page list

Suppose I want to loop through a page list but I didn't know the name of the page list until runtime (ie. name passed in a parameter). How would I be able to iterate through the list in an activity without using a java step?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

November 26, 2012 - 7:09am

Hi Thevah666,


Were you able to find any solution to the post? 


Thank you!

November 29, 2012 - 2:15pm

Define the param named as "DynamicPage" of type Page at Parameter tab.

And define the page named as DynamicPage of class<Work-> at pages and classes.

Now choose the For Each Embed page at property-set and defined the page name as Primary.DynamicPage and you can set the data mapping accordingly.


November 30, 2012 - 5:31am


Did this work for you?When i tried, it was creating a pagelist with the name "DynamicPage" instead of the value in the parameter.

November 30, 2012 - 10:14am

passing Dynamic page will not work for each embed pages due to pega using the below reference API

ClipboardProperty pz_3 = tools.findPage(tools.getParamValue("PageName")).getIfPresent(".<property Name>");

As mentioned above pagename will work

After that they are using getIfPresent ("<propertyname>") means expecting the property name not the page name .

May 20, 2016 - 7:49am

  datatable instance---->SBI-INFC-InvestsOps-Data-EmpInfo

loop is --->foreachembadded