1

Good day, friends! I have created DE in my BU (this is child BU). I can see it, it is available, I can add rows into it. But when I tried to use it in the script, it returns null rows. When I try:

var testDE = DataExtension.Init("DEname");
var data = testDE.Rows.Retrieve();
if (data.length > 0) {
      Write("The Value " + Stringify(data));
    } else {
      Write("No Rows Found");
    }

And it returns "No Rows Found" What can be the problem? Thank you in advance.

2

You are pasting into var testDE = DataExtension.Init("..."); Data Extension's Name, however you need to paste there External Key. So you can either adjust the code to have External Key instead of Name there or make the External Key = Name of the Data Extension.

Read here more.

1
  • Thank you so much! You really helped me! Jun 27 at 21:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.