---
schema_version: "1"
id: 43311e424a6910d91d91b6b77b11e7d5ce310109feb2c8664fd8a648436623c2
title: Script Activity
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_as_create_a_script_activity_1.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_as_create_a_script_activity_1.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a7a702ef2c9866bc71f1e9a6a807982c3497cd3a516d7b3427f6a7acb5b78e5c
description: 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.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_journeys_and_automations-264-0-0-production-enus/e08cdd71-c1c1-4ae5-a5e9-8a6dad583ad4/images/icon_note.png)

Note

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

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_journeys_and_automations-264-0-0-production-enus/e08cdd71-c1c1-4ae5-a5e9-8a6dad583ad4/images/icon_example.png)

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](https://help.salesforce.com/s/articleView?id=mktg.mc_as_create_a_script_activity.htm&release=264.0.0&type=5)**  
    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.