How to check the property value is already exists in the other pagelist temp Activity

Hi,

I have a requirement where system need to fetch all the open cases and sending an email if the condition met.

There are might be a lot of cases under 1 person so system only need to send the email once and list the open cases to that one person.
I have a problem when I want to send the email only to that one person. I want to use IsInPageList function to check if there is already the value of emailAddress same as emailAddress on the current loop page, but it still can’t filter anything (the email still sent to same person multiple times as much as the open cases under that person exists)

So, the email is under .ContactList().Recipient.EmailAddress, and I want to check in the Temp.pxResults under the pageList ContactList() class.

How to check if a value in the .ContactList().Recipient.EmailAddress already exists in the Temp.pxResults().Recipient.EmailAddress

Please I need help to implement this. Thank you

@AyuAnindita How are you using IsInPageList, probably the arguments are not passed correctly.

From the info above -

In your loop you can initialize a local var - emailAddress = Temp.pxResults().Recipient.EmailAddress

and then call function on Primary Page -

IsInPageList(local.emailAddress, “.Recipient.EmailAddress”, “ContactList”)