I have an email that has a Download now CTA that should point to a link that is split based on the Country. There are a total of 14 different links and instead of creating 14 different emails with 14 different links can this be optimized so that we can have one HTML email that has some scripting and it will automatically prepares the link based on the subscriber's country value from the database?
However we have 2 Recipients table in our instance with different namespaces. When i try to access it using recipient.country i'm receiving [object WppObject] as its value. i did this just to know what the variable recipient.country is pulling as its value.
The code above is not a full solution and was only provided to illustrate HOW to do it. The final solution will be entirely dependent on your data and how your schemas are set up.
That being said, recipient.country is a link to an already linked table out of the box and may or may not have data in it. You can access the fields in that table by calling them after (ie recipient.country.label, etc.).