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
0
votes
1answer
1k views

How do i create a Data Extension using SSJS in SFMC?

I need to create a data extension using SSJS in SFMC. <script runat=server language="JavaScript" executioncontexttype="Post" executioncontextname=test> var deObj = { "CustomerKey" : "...
-1
votes
1answer
287 views

How to remove a record from a publication list using scripting [closed]

Can please help me to how to remove a particular record from publication using scripting(ssjs/api ampscript) Thanks, Shiva
-1
votes
2answers
1k views

Marketing Cloud - custom subscription center

There is a requirement to build a custom subscription center with SSJS. PersonHasOptedOutOfEmail field in Account_Salesforce and changes to All Subscribers status field reflect this field. Does ...
-1
votes
1answer
1k views

How do I copy one Data Extension to another using AMPScript or Server-Side JavaScript?

how To copy data one Data extension to another Data Extension by using Amp Script or Server side java script. Here's what I have so far: <script runat=server> Platform.Load("Core","1"); ...
-1
votes
1answer
32 views

Is there a best practice for the number of script activities in an automation?

I'm creating an automation that may need to have upwards of 20 script activities, in order to process 40,000+ records as there's a governor limit of 2500 in Rows.Retrieve. What's the best practice ...
-1
votes
1answer
73 views

How to create an outbound API call from SFMC using SSJS

Use Case - get data from external web services and store the data (response) inside SMFC data extension field. *New to API Calls - detailed step by step guidance would be really helpful. The ...
-1
votes
1answer
228 views

How to show alert in server side javascript on conditional basis?

I am using server side Javascript and fetching a column from data extension. I want to show alert on the basis of value retrieved from SSJS lookup but whenever i place alert in SSJS code i get 500 ...
-1
votes
2answers
863 views

Marketing Cloud SSJS Unsubscribe Returns Error

Looking at using SSJS to unsubscribe from a Landing Page and from a Data Extension (via SSJS Activity). Of course there are AMP Script options, which we would like to avoid this due to SSJS ...
-2
votes
1answer
99 views

ParseJSON array [closed]

I am trying to achieve the following. I have JSON with array: apicall = { "CallID":"123", "Response":[ { "Header1":value1, "Header2":value2, "Header3":value3 } ]} And I would like to parse the ...
-2
votes
1answer
78 views

How to invoke a CloudPage from inside a Custom JB Activity and pass input parameters to it?

We have some SSJS/AMPScript code embedded in a cloudpage which we want to invoke from a Custom JB Activity and pass some parameters to it as input. Please advise how we can achieve this. Any sample ...
-2
votes
0answers
28 views

SSJS script to update a date field based on another date field based on days in the next month in marketing cloud [closed]

I have a requirement to update a date field (bill_date) based on 2 fields (another date field(order_activated_date) and bill_cycle field). If bill_cycle is 1 and my order_activated_date is 8/4/2021(...
-3
votes
1answer
35 views

Populate output of all values in the loop in SSJS

I have the following code and I would like to get all the values in that loop as output. Can someone tell me the function/process we use to get that result? <script runat="server"> ...
-4
votes
1answer
5k views

SSJS to AMP script [closed]

I am trying to retrieve data using ssjs from one DE and by using AMP script should populate those values to another DE. I am getting with AMP to ssjs but I am not getting with SSJS to AMP. Can anyone ...
-4
votes
1answer
129 views

How to create a task for Salesforce cloud crm using ampscript [closed]

Please advise how to create a task for Salesforce object in MC using ampscript.please let me know is this functionality is achievable Regards Shiva
-5
votes
1answer
159 views

SSJS to create Import Defination in Marketing Cloud

I would like to create an Import Defination in marketing cloud using SSJS, where my source should be one dataExtenion and the traget should be another dataextension. I also want to start the ...
-10
votes
3answers
706 views

How to use trim() function in SSJS using data extension in Marketing Cloud [closed]

How do I use trim() functions in SSJS? Using Data Extensions. Can you please provide some examples? I have a Data Extension, where "Message" is an Attribute. In this Attribute how do I use the trim(...

1
10 11 12 13
14