Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save katydorjee/2fcabcad703c957eaba22e88cf41acc5 to your computer and use it in GitHub Desktop.
Save katydorjee/2fcabcad703c957eaba22e88cf41acc5 to your computer and use it in GitHub Desktop.
Remove subscriber from Auto Suppression List
<script runat="server">
Platform.Load("Core","1.1.1");
var autoSuppressionExternalKey = "AutoSuppressionExternalKey";
var SubscriberstoRemoveFromAutoSuppressionList = "Data_Extension_ExternalKey";
var deleteRecords = DataExtension.Init(SubscriberstoRemoveFromAutoSuppressionList);
var data = deleteRecords.Rows.Retrieve();
for (var i=0; i < data.length; i++) {
var emailAddress = data[i].Email;
var deleteRow = Platform.Function.DeleteData(autoSuppressionExternalKey,['Email Address'],[emailAddress]);
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment