Question

3
Replies
43
Views
Koen Voogd (KoenV803)
Interpolis

Interpolis
NL
KoenV803 Member since 2020 1 post
Interpolis
Posted: November 25, 2020
Last activity: November 30, 2020
Posted: 25 Nov 2020 5:02 EST
Last activity: 30 Nov 2020 12:55 EST

Pega Marketing Expression Builder | Check for value in result pages

Within a Pega Marketing Strategy, say StrategyX, we have a Sub Strategy which can give back multiple pages as a result (as visible in the Test run panel).

Each page contains multiple properties, one of which being a property called ".pyBehaviour". Within our StrategyX we want to check if a certain value, say "valueY", is present in the property .pyBehaviour in one of the pages of the Sub Strategy results and give back 1 if true and 0 if false. Also we don't want to directly input the Sub Strategy into the component, in this example the Set Property component (see screenshot for setup).

Currently we have built the following:

@if(@IsInPageList("valueY","pyBehaviour",Sub_Strategy.pxResults)==true,1,0)

Currently this always returns 0. Presumption is that we are not using the right parameters in the IsInPageList function. Or we might have to use different function.

In short: how can we check if a certain value exists in a property in one of the result pages of a sub strategy?

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Marketing 7.31 Low-Code App Development