I've created an email using ampscript that pulls in the latest blog posts from an RSS feed. I would like to automate the sending of this email on a daily basis. This blog may have days where there is not a post, and I don't want to send out duplicate content so it's important that the email doesn't get sent if there hasn't been a new post.
Is there a way (using ampscript) to make sure that the email will not send if there have been no new posts on the blog in the past day?
Attribution to: Rick
Possible Suggestion/Solution #1
There are several ways to do this, but most of them will still charge you for the send once email generation is underway. The BEST way is you need to contact support and/or your account representative and get Audience Exclusion scripts enabled under your account (not standard). This will show up when you create a User Initiated Send. A new text area will show up at the bottom, where you can write a one line ampscript expression that evaluates to boolean. If its true, the email doesn't go out. Otherwise, it does.
Attribution to: Timothy
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/32559