Question2Replies282Views JoseRico Member since 2017 4 posts KPMG Asesores SL Posted: September 25, 2019Last activity: September 25, 2019 Closed How to use property/param as an index in a forEachGood morning all,It is possible to use a property or param that is calculated the OfferData as an index in a foreach?For example:<pega:forEach name=".Customer.Bookings("<pega:reference name=.OfferData.BookingIDIndex/>").Segments">...do....</pega:forEach>Where .OfferData.BookingIDIndex is a dynamic value that is calculated previously.I have also tried with <pega:reference name=Param.BookingIDIndex>, referencing it previously but nothing.Rgds,Jose Rico. Pega Marketing Low-Code App Development ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 1 year agogundk PEGA replied to JoseRicoHi, Please have look in below link. https://community1.pega.com/community/product-support/question/how-get-index-loop-pega-foreach Hope it will help you. Thanks, Kranthi Posted: 1 year agoJoseRico KPMG Asesores SL replied to gundkHello, thanks for posting but this is not what I am looking for. The code above is in a section (HTML), and inside there's a loop: <pega:forEach name=".Customer.Bookings("<pega:reference name=.OfferData.BookingIDIndex/>").Segments"> </pega:forEach> .OfferData.BookingIDIndex is calculated in a previous strategy and then recovered by the offerData. Sometimes will return 1 as an intenger or sometimes will return 5. I will like to know how can I achieve this. Rgds, Jose Rico.