i want to assign a coupon code to each contact, so that when i send the marketing email, they can get the specific coupon.
for the excisting contact, we can fill in the coupon in the contatc property by hand. but i want to know for the new created contact, how to wright an woekflow to random assign the coupon to new contact automatically? and where can i store this coupon code?
You can create a workflow that triggers on new contact creation and uses a custom code action (or integration with a coupon database) to assign a random coupon. Store the coupon code in a custom contact property for easy personalization in future emails.