Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

Using AMPScript to define which Send Classification to use

$
0
0

OK, so I find myself in a Marketing Cloud environment where Send Classifications are set up individually for Denmark, Sweden, Germany, Schwitzerland and The Netherlands, but my new, triggered mail is built to dynamically show content based on the [Country Code] in the trigger data extension.

All 5 Send Classifications have external keys, can I assign a Send Classification inside the mail in AMPScript using the external key?

The following needs a rewrite, but hopes this makes what I wish for easy to understand:

<!--Script Blok-->%%[ /* Script Blok <div style="display:none"> */VAR @dyncountry SET @dyncountry = UPPERCASE([Country Code]) IF @dyncountry == "DK" THEN "Use Send Classification with External Key XXXX"ELSEIF @dyncountry == "CH" THEN ...and so on/*</div>*/]%%

Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>