Expand my Community achievements bar.

Journey - Condition node advanced mode (expression PQL)

Avatar

Level 1

Hi, 

I was wondering how one would be able to write this in the "advanced mode" expression for condition nodes: profile.segmentMembership.get("ups").get("0e7acbf5-bf4c-4673-8c66-c3177e045335").status == "exiting"%}

Based on the documentation I have found, "inSegment('segmentName') == false" should be doing the same thing (added a link to the documentation below). However, it does not seem like the expression above refers to cusotmers with an "exiting" segmentMembership, but rather no segmentMembership (such as the regular Not(InSegment('segmentName'))  ).

Boiling it down, I want an expression that works within a condition node that identifies profiles with a segmentMembership == exiting, i.e. split a read segment based on customers that either exited another segment or not. It seems to work if you have the segment qualification as starting point, with the expression

"in(@{SegmentQualificationall_customers.segmentMembership.ups.b7211d0c-f77d-4f4b-a1b2-2d653ab90aa9.status}, ["exited"])"

but I want the same function with a regular read segment.

 

Link to insegment documentation page 

0 Replies