> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create or edit a script

> Create a script

<Note>
  This feature requires a license for [Development Tools][1] or the CRM Suite **Core** plan.
</Note>

[1]: /en/admin/license/expander-services

## Steps

1. Go to **Settings and maintenance**.

2. Select **CRMScript** and do one of the following:
   * To create a new macro: Click **New macro**.
   * To edit an existing macro: Click the macro name.

3. In the **Information** tab, edit or enter data about the script:

   * **Folder**: Select the folder you want to save the script in.
   * **Name**
   * **Description**
   * **Include name**: A unique name for the script, used to include this script in another script.
   * **Key**: The key is used with the "action=parse" function on the customer pages so that you can run scripts and set up script-based functionality in SuperOffice Customer Centre. The key prevents arbitrary scripts from being run from the customer pages.
   * **Show result of running script as HTML**

4. In the **Script** tab, you can enter the script itself.

5. (optional) Click **Stage** to stage script. This allows you to test the changes by yourself.

6. (optional) Click **Execute script** to run the script. The result displays in the **Result** tab.

7. Click **OK**.

<h2 id="folder">
  Macro/script folder properties
</h2>

Script and macro folders are used to organize your custom scripts and macros.

### Create folder

1. Click **New folder** at the top of the screen.
2. In the **Folder** field, select a parent folder in the list.
3. Enter a descriptive name for the folder in the **Name** field.
4. Click **OK**. The new folder is created.

### Edit folder

You can edit both the name of a folder and the details you entered when creating it.

1. Go to the required folder.
2. Click the name of the folder.
3. Amend the fields.
4. Click **OK**. The changes are saved.

### Delete folder

When you delete a folder, all its contents (such as selections, FAQ entries, reply templates, tables, scripts, and macros) are also deleted from SuperOffice.

1. Go to the required folder.
2. Click the name of the folder.
3. Click **Delete**.
4. Click **OK** to confirm. The folder and its contents are removed from SuperOffice.


## Related topics

- [About CRMScript](/en/automation/crmscript/index.md)
- [Debug scripts](/en/automation/crmscript/debugging/built-in-debugger.md)
- [Trace scripts](/en/automation/crmscript/debugging/using-trace.md)
