Skip to main content

Questions tagged [ssjs]

Server-side JavaScript (SSJS) in the Salesforce Marketing Cloud allows a developer to use JavaScript syntax and proprietary platform libraries for server-side processing.

Filter by
Sorted by
Tagged with
1 vote
2 answers
47 views

I am trying to come up with a solution to log any record that is excluded by the exclusion script. I am using the TreatAsContent function in the exclusion script to render the below code block. ...
Lydia Ferguson's user avatar
0 votes
0 answers
44 views

I have code that works to create a CSV file out of a data extension, but this cuts off at 2500 records where I hit error "Unable to retrieve security descriptor for this frame" since there ...
Johhnytska's user avatar
0 votes
1 answer
99 views

this script, trying to get a API token but not sure if this is correct, Google has so many different options, its all over the place and documentation is lacking... I replaced my API values with XXX. ...
Ray Kodiak's user avatar
1 vote
1 answer
101 views

Hi I have json structure like this sample (but the object name/count will be dynamically come from html input, which will have different values of any input) {"Hero":"http://your.image....
Husnul Afif's user avatar
1 vote
1 answer
54 views

I can run this bit of code on the parent BU to retrieve records from a Shared DE: var prox = new Script.Util.WSProxy(); var moreData = true; var reqID = null; var srcDE = "DataExtensionObject[...
FedUp's user avatar
  • 33
0 votes
1 answer
93 views

I have a perfectly functioning SSJS Rows.Retrieve code but I can't seem to find a way to get the recordset it returns to be sorted / ordered by something of my choice, it seems to sort by the Primary ...
Ruskers's user avatar
0 votes
0 answers
36 views

I am attempting to create a script that will fire a Wait Until Event activity in journey builder if a subscriber in a DE has a CallScheduled value of "true". Then the same DE should be ...
K K's user avatar
  • 321
0 votes
1 answer
156 views

ok, I have been working on a small little side project to learn SSJS, but also produce something useful.. I want to create a Master DE that reports some Attributes about the DEs that we have in our BU,...
Ray Kodiak's user avatar
0 votes
0 answers
35 views

The code below does not throw any errors when run in Automation Studio SSJS, but the code itself does not actually execute. When I run the exact same code on a CloudPage, it works without any issues. ...
Minkyeong Kwon's user avatar
0 votes
1 answer
54 views

<script runat="server"> Platform.Load("Core", "1.1.1"); var authBaseURI = "https://SUBDOMAIN.auth.marketingcloudapis.com"; var clientID = ...
Prisha's user avatar
  • 1
-1 votes
1 answer
77 views

I’m currently looking for a way to synchronize MobileConnect opt-outs with Sales Cloud. I have the MC Connector set up and running, but we don’t have a preference center in place. Right now, I have an ...
Mario Manuel Andrianto's user avatar
0 votes
1 answer
81 views

I have got SSJS CODE which reside in landing page where I used Platform.Request.GetPostData(0); So whenever an email event occurs this should execute and return Raw JSON response (I am thinking this ...
Kishore Challa's user avatar
0 votes
0 answers
52 views

I have been trying to filter a data extension with two values. Every time I try, the values are not returned. Any guidance would be greatly appreciated. This is what I tried: Fetching the values from ...
Dinesh S's user avatar
1 vote
2 answers
105 views

I'd like to create a SSJS script which retrieves NotSent emails. I know that there is a tracking extract method that can be used for that, but I need to achieve the same result using SSJS. Any help? ...
Gio's user avatar
  • 31
-1 votes
1 answer
53 views

I have a request to select the email at time of send based on the asset ID within a DE. The number of asset IDs may change but it is deterministic. (value = 504). I am unaware how to do this using ...
Aaron's user avatar
  • 31
2 votes
1 answer
70 views

We are calling a 3rd party API and we noticed that marketing cloud is adding automatically the 'Expect' header when running the code in a script while its not when running the code in a cloud-page. ...
SebOB's user avatar
  • 847
0 votes
1 answer
417 views

I am trying to use SSJS to retrieve the DE names of all DE's in a particular folder (folderid = 14273, not sure if that needs to be in quotations), and save them in an upsert DE (DE name = Dede). The ...
houjicha's user avatar
1 vote
2 answers
574 views

I want to insert the rows from an existing data extension with the same column structure into another one using SSJS within Automation-Studio. I am using SSJS because I want to add them dynamically, ...
Den_wob's user avatar
  • 11
0 votes
1 answer
60 views

I've got a data extension with over 2500 records in it that I'm trying to modify as such: take the 'ContactKey' value, encrypt it using EncryptSymmetric() in AMPscript, and then assign the 'Encrypted ...
HaloToxin's user avatar
1 vote
2 answers
228 views

I'm trying to update a field in a data extension to NULL for everyone in the DE. I am new to SSJS and tried to use a script from somewhere else but am struggling to make it work. Can anyone help ...
Donna Redmond's user avatar
0 votes
1 answer
362 views

I'm trying to parse JSON data stored in a field (Product2) within a Salesforce Marketing Cloud Data Extension and then upsert the parsed data into another Data Extension. I've written a Server-Side ...
Nour Masri's user avatar
1 vote
1 answer
462 views

I'm attempting to update the Email Address of a specific subscriber using SSJS. The SSJS is retrieving the Subscriber Key and New Value (updated email address) in a Data Extension. If the Subscriber ...
Gbengoose Wuru's user avatar
0 votes
2 answers
324 views

I'm currently facing a challenge with Microsoft SafeLinks in an email marketing context. SafeLinks, a feature in Microsoft's security suite, pre-fetches URLs for security checks and then again when a ...
Dandys23's user avatar
0 votes
0 answers
138 views

My code in decrpypting the data that needs to be decrypted. After that it's not going in For loop but directly goes to Catch statement and throws error. Wondering if this something with my permissions ...
Drishti Jindal's user avatar
0 votes
1 answer
92 views

I'm now testing a new method to create a data extension field automatically through REST API calling,referring to this developer DOC It's operated by POST method, and I think I wrote all of the ...
Suejin Min's user avatar

1
2 3 4 5
21