Showing posts with label Data Transform. Show all posts
Showing posts with label Data Transform. Show all posts

Pega remove duplicates from activity and data transform

How can we remove duplicates from a Page-List?

Byusing Pega functions like “RemoveDuplicatesInPageList”, pzRemoveDuplicatesFromListPage and pzRemoveDuplicatesFromListPage
We can use both the functions in Data Transform and Activity.





Advertisement

Clear messages in data transform ?


In Activity, we can use the Page-Clear-Messages method to clear all the messages from the step page.
But can we remove messages from the data transform?
We can try to use functions to clear messages from the primary page in data transform.
@pxClearMessages() - to clear messages from the primary page.
@pxClearMessages( Page clipboard page) - this is to clear messages from the specific page.
Generally, these functions will be used in error handling in the data page response data transform.

 Set param.status equal to @pxClearMessages()
 Set     param.status equal to @pxClearMessages(tempPage)
Pega will return param value to "true" if it is successfully clears all messages.