3
votes
Accepted
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
Accepted
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
Related Tags
ssjs × 912marketing-cloud × 871
ampscript × 258
automationstudio × 103
cloudpage × 103
dataextensions × 99
javascript × 74
api × 54
soap-api × 44
rest-api × 41
wsproxy × 37
marketingcloudapi × 36
json × 29
automation × 24
landing-page × 24
email × 22
journeybuilder × 21
sql × 19
content-builder × 15
httprequest × 14
httppost × 13
html × 11
subscriber × 11
gtl × 10
triggered-send × 9