---
schema_version: "1"
id: 34c4973f6638d749aa1c0d4e7f5432d4d36e0a77beb5ab447bace162ed3cf4a9
title: Create a 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.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_as_create_a_script_activity.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 372b6d921a3c7804b9c67549b9bf0fe47acc703ace6a1e3750126cbfcb800c28
description: 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.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# 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.

![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.

1. Click **Create Activity**.
2. Select **Script**.
3. Add all applicable details.
4. Enter your server-side JavaScript.
5. Click **Validate Syntax** to test your JavaScript. This step does not ensure that the script runs successfully, but it ensures that the server-side JavaScript uses valid syntax.
    
    ![Enter and validate JavaScript.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_journeys_and_automations-264-0-0-production-enus/e08cdd71-c1c1-4ae5-a5e9-8a6dad583ad4/mc_journeys_and_automations/images/mc_as_script_properties_1.png)

#### See Also

- [Server-Side JavaScript](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_serverSideJavaScript.html)