Aller au contenu principal

Web Socket Proxy snippets

Reusable Cloudpage to clear any DE using Key, without search -> open -> hit clear
Example: https://yourcloudpageurl.com/abcdef?x=YourDEKeyToClearRecords

<script runat="server">
Platform.Load("core","1.1.5");
var CustomerKey = Request.GetQueryStringParameter("x");
var prox = new Script.Util.WSProxy();
var action = "ClearData";
var props = {
CustomerKey: CustomerKey
};
var opts = {};
var data = prox.performItem("DataExtension", props, action, opts);
Write("<br>result: " + Stringify(data));
</script>