A new year means new ideas, and new best practices, for email marketers. The platform experts at Trendline have compiled their top tips to help you get more out of Salesforce Marketing Cloud, and your email program, in 2019.
Comment your AMPscript code. You never know who may have to maintain it.
—Chester Bullock, Vice President, Solutions Consulting
Use code snippets in Content Builder to not add padding to your dynamic content.
— Mollie Ficarella, Solutions Consultant
Instead of using !="" in AMPscript, use NOT Empty()
%%[IF @FirstName !="" THEN]%%
Is commonly used ampscript to properly form the subject line depending on if first name is populated or not. If you are using this in tandem with a lookup function and the record you are trying to look up does not exist in the lookup table, the code breaks and the SL will display as
“ ,the...”. If you use NOT EMPTY instead, the SL will display correctly regardless if it finds a matching record or not.