I have a code to when i press the button a data extension is created in the marketing cloud But its not working because i need a handler page, how can i do that? Thanks in advance
Follow my code, what i've been trying
<script>
function createDE(){
var deObj = {
"CustomerKey" : "demoDE",
"Name" : "MyDemoDE",
"Fields" : [
{ "Name" : "Field 1", "FieldType" : "Number", "IsPrimaryKey" : true, "IsRequired" : true },
{ "Name" : "Field 2", "FieldType" : "Text", "MaxLength" : 50 },
{ "Name" : "Field 3", "FieldType" : "Date", "Ordinal" : 2 }}
]
};
var myDE = DataExtension.Add(deObj);
</script>
<html>
<button onclick="createDE()" style="margin-left: 2%">CreateDE</button>
</html>