Hot answers tagged

3 votes

How can I count the number of objects in my JSON

This is actually super simple, if you use SSJS and the ParseJSON function. The function returns a JS object, and you can easily check it's length property using .length as illustrated below: %%[ VAR @...
  • 19.1k
2 votes

Platform function HTTPPost issue

First of all, I totally agree with Duc Le you should use Script.Util.HttpRequest instead of Platform.Function.HTTPPost. But your actual issue is, that you missed the last parameter of HTTPPost I ...
  • 21
1 vote

Programatically update the "Used for Sending" value for DEs in folder and all child folders

Speaking of your code: First of all, it is not recommended to use undocumented API endpoints, since they might be changed/removed/disabled at any point in time, thus making the solution in a long run ...
  • 2,451
1 vote

Targeting a nested array with SSJS to use with a for in loop in Marketing Cloud

I believe you would need to parse the JSON first and then use a loop to write keys and values in the nested JSON. Try something like this in the email: (assuming the DE is using as the data source in ...
  • 1,266
1 vote

Find emails sent to a specific data extension?

The way I know is putting system personalization strings into email and then create a sendlog DE to capture those information. Hence you will have information both Email Name and the Data Source were ...
  • 1,266
1 vote

SSJS RemoveCookie and SetCookie

I couldn't get RemoveCookie to work either, but there is a work around. You can set headers instead. HTTPHeader.SetValue("Set-Cookie", 'mycookie="deleted"; path=/; expires=Thu, 01 ...
  • 206

Only top scored, non community-wiki answers of a minimum length are eligible