Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

0 votes

Unable to perform PUT request using WSProxy

It is correct to use Script.Util.HttpRequest() to do PUT requests in SSJS. Below is a PUT function I have used to bulk upsert to a data extension. var token = "xxxxx"; var restBaseURI = &...
August Rimmen's user avatar
1 vote
Accepted

Account.Retrieve SSJS core function has stopped working

partially copied from comment: code works for me, stack51. to narrow down if the operator is (or became) the problem, try a filter that relies on operator equals but also assumes nothing, like filter =...
Jonas Lamberty's user avatar
0 votes

SSJS Syntax Checker

This is a great resource you can use to play around with SSJS (and much more): https://mcsnippets.herokuapp.com/cloudpages
Yevgeni Y's user avatar
1 vote
Accepted

HTTP DELETE for a Push Location

As @identigral commented above, you can use the Script.Util.HttpRequest() function as it lets you be more flexible with the method. You can alter the your code something like this: <script runat=&...
Duc Le's user avatar
  • 3,508
1 vote
Accepted

Possible to export a Data Extension programmatically through SSJS

The only way to interact with the SFTP is Data Extract/File Transfer (and imports). The problem is that you need both, one after the other is finished. -> The solution is to put them into an ...
Jonas Lamberty's user avatar
1 vote
Accepted

HTTP GET for All Push Locations not working

HTTP.GET returns the response object with attributes are Status and Content Therefore you should parse the response like this: ...... var responseAllLocation= Platform.Function.ParseJSON(response....
Duc Le's user avatar
  • 3,508
0 votes

Why is the SSJS constructed query not updating?

Found the issue, the var sqlQuery = "" was in a try/catch scope. So the actual function received an empty variable. Here is the updated part: var sqlQuery = "" try { var de = ...
yoni349's user avatar
  • 133
0 votes

Errored out automations for the past 1 hour

What have you tried? Where are you stuck? We will be happy to help you, but expect some degree of research on your side. You can, however, start looking at the Automation Instance data view. It can ...
Lukas Lunow's user avatar
  • 21.8k
0 votes
Accepted

Correct syntax to reference dynamic column name with SSJS Rows.Update() function

just found the answer which tested and works (thanks chatgpt) var colWrite = 'Column' + e.num; var updateObject = {}; updateObject[colWrite] = payloadStr; DEName.Rows.Update(updateObject, ['CampaignID'...
mozzy69's user avatar
  • 38
0 votes

I want to update Salesforce Automotive Cloud Object and Marketing Cloud Data Extension using SSJS in Automation Studio

I found a post on Stackexchange that mentioned when updating a Salesforce object's datetime field with a value from a Marketing Cloud datetime field using AMPscript, you need to use FormatDate() to ...
Hyein Park's user avatar

Top 50 recent answers are included