Pega Constellation: Page List Not Removed from pyWorkPage in Clipboard

My requirement is to remove the page list from the pyWorkPage. I wrote an DataTransform to do this, and while tracing the DataTransform in the Tracer, I can see that the list is being removed from the pyWorkPage. However, when I check the Clipboard, the data is still present. How can I fix this issue?

Hello @suchitad

This is a known issue with RemoveDeletedObjects function where we do not have a return type defined as shown below

Due to this when you use this function on the second level pagelist like pyWorkPage.Order.Lines, it will not work.

So, you can save as the OOTB function with a different name like “RemoveListEntries” and define a return value like mentioned below,

Keep the parameters and rest of the function body similar to what you have in OOTB function.

This approach will work. Hope this helps

Regards

JC

Created new Lib and tried with the approch as you suggested but no luck..

Corrected DT:

It will work for sure as i have done the same in multiple applications. See if you have anything else blocking the work case content for updating. I see some kind commit happening in the screenshot you have shared. Do not hardcode the pyWorkPage when you are already in the work context/page. Do not commit between the flow processing. Please check the code around this DT and verify once again

Regards

JC