I would like to retrieve the header of a data extension using SSJS within my Landing Page. Below is my code :
<script language="javascript" runat="server">
Platform.Load("Core", "1");
var DE = DataExtension.Init("TEST_1");
var F = DE.Fields.Retrieve();
Write(Stringify(F));
</script>
I tried different scenario but it's like the function :
Fields.Retrieve();
Either don't retrieve the value or the function:
Write(Stringify(F));
Don't display the JSON that the function "Fields.Retrieve()" is getting.
The output I get is :
[]
And I should get something like on the documentation :
Thanks for your help !