Created
May 16, 2024 04:46
-
-
Save katydorjee/2fcabcad703c957eaba22e88cf41acc5 to your computer and use it in GitHub Desktop.
Remove subscriber from Auto Suppression List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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