Loading
Ongoing maintenance for Salesforce HelpRead More
Journeys and Automations in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Script Activity

          Script Activity

          A server-side JavaScript® (SSJS) activity contains SSJS code that is executed when started, either on its own or as part of an automation in Automation Studio. You provide the SSJS code, a name, external key, and description to identify the activity within the application interface and for API calls.

          Use server-side JavaScript activities to host and run resources for landing pages. Order these scripts within an automation to run in any sequence. Server-side JavaScript activities time out after 30 minutes.

          Note
          Note

          JavaScript is a registered trademark of Oracle and/or its affiliates.

          Example
          Example

          Use server-side JavaScript to perform these actions inside an automation:

          • Create a data extension
          • Import information into that data extension
          • Filter out those subscribers with a birthday in the next week
          • Send an email to those subscribers
          • Create a Script Activity
            Add your own server-side JavaScript using this Automation Studio activity to accomplish any task for which you would use server-side JavaScript in an email or landing page.
           
          Loading
          Salesforce Help | Article