0

I am trying to retrieve the name and customer key from many content blocks like I do with data estensions

var prox1 = new Script.Util.WSProxy();
var cols1 = ["Name","CustomerKey"];
var filter1 = {
    Property: "Name",
    SimpleOperator: "like",
    Value: "my_codesnippet_name"
};
var desc = prox1.retrieve("CodeSnippet", cols1, filter1);

But this code responses undefined

1 Answer 1

1

All content blocks and assets are stored in Content Builder, which requires the Content Builder REST API. Since it is utilizing the REST API, this means you cannot use WSProxy as that only uses SOAP API.

So you would need to build a REST API call to retrieve this information and not WSProxy.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .