I'm going to be using the ClaimRow() to pull a new or existing coupon code. I am wondering if there's a way I can have that code populate not only in the body of the email but also as a URL parameter.
Is that possible?
best,
Ted
Yes you should be able to use the same variable you set from the ClaimRow() function for your CouponCode (lets assume @CouponCode) in your url.
Below are a couple example ways to handle it:
Inline fill:
<a href="https://www.google.com?coupon=%%=v(@CouponCode)=%%">
If Cloudpage:
<a href="%%=RedirectTo(Cloudpagesurl(@myID,"coupon",@CouponCode))=%%">
Concat And Redirect:
<a href="%%=RedirectTo(Concat("https://www.google.com?coupon=",@CouponCode))=%%">
I am sure there are other options, but these are the major ones I see used.
%%=v(@CouponCode)=%%
.
Commented
Apr 29, 2022 at 13:40