Utilizing event attributes for personalization and data exports
Problem
I am trying to understand how to use event attribute values for:
1. Personalization
2. Data exports
Event
Lets say we have an Online Purchase event where eventCode = 'online purchase' that includes the following attributes:
customerID
accountLastFour
purchaseAmount
numberOfProducts
Segment
We then create a 'Large Purchase' segment where:
eventCode = 'online purchase'
purchaseAmount > '1000'
Personalization
When a profile qualifies for this segment they enter a journey in which we want to send a personalized email that includes their account last 4. How would you go about getting the value of 'accountLastFour' from the event that qualified the user for the segment? What if the user had multiple events that qualified them for the segment, but with different 'accountLastFour' values?
Data Export
Similarly, if you needed to do a segment export of everyone who qualified for the segment and include in the file 'customerID' (from either the profile or event attribute) and 'numberOfProducts' (which only exists as an event attribute) values - how would you go about accomplishing this?
Thank you for any help/advice in advance!
Cheers,
Michael