Solved
How can we delete a Page inside the page list based on condition?
How can we delete a Page inside the page list based on condition?
How can we delete a Page inside the page list based on condition?
Accepted Solution
Hi @DolluM39,
You can follow this approach:
pyDeletedObject
to True
.@Utilities.RemoveDeletedObjects(<PageList>)
.The reason your current approach isn't working is because the internal iterator object for the list can't handle the list being changed while you're removing pages.
Hi @DolluM39,
we can achieve this by using data transform and activity.
1. In data transform, Use the For Each Page In method to loop all pages in the page list, In that child add when condition, If the condition is true then add the child step Remove the current page. In the Remove step use the page as".MyPageList[<CURRENT>]".
2. In Activity, Loop the Page list, in that child, step add when condition, and in that step use the Page-Remove method to Delete/remove the current page. In this Page-remove step use the page index as" MyPageList(<CURRENT>)".
Accepted Solution
Hi @DolluM39,
You can follow this approach:
pyDeletedObject
to True
.@Utilities.RemoveDeletedObjects(<PageList>)
.The reason your current approach isn't working is because the internal iterator object for the list can't handle the list being changed while you're removing pages.
Question Solved
Question
Question
Question
Question
Question
Question Solved
Question Solved
Question
Question
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.