> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/digital-asset-management-dam/settings/library/custom-actions.md). Agents can also search and read this documentation through its [MCP server](https://docs.scaleflex.com/~gitbook/mcp).

# Custom actions

Custom actions let admins turn a metadata update the team repeats every day into a single click. Create an action such as "Mark as Active", and anyone in the library can apply it to one asset or to a whole selection without opening the metadata form. Admins build actions in Settings. Users find them in the right-click menu, the asset card menu, the multi-select bar and the Asset Details window. Pin one action and it becomes a button, so the most common task is never more than one click away.

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FPJePcU8xeDumCdtsv8fN%2Fimage.png?alt=media&amp;token=00c1b606-e9ec-4e02-9552-76e1a47b402b" alt=""><figcaption></figcaption></figure>

### What can a custom action do?

A custom action sets one or more metadata values on the assets you apply it to. This is the only action type available today, called **Set metadata**.

For example, an action named "Mark as Active" can set the metadata field `Status` to `Active`. One click on a selection of 40 product images updates all 40.

An action can hold up to 10 field and value pairs, so a single click can update several fields at once.

### How do I create a custom action?

Admins create and manage actions in the library settings. You need permission to edit preferences to create, edit, pin, clone or delete an action. Users who can view preferences can see the tab without changing it.

1. Go to **Settings > Library > Interface** and open the **Custom actions** tab.
2. Select **Create custom action**. If you have no actions yet, this button appears on the empty state.
3. Fill in the form, using the table below.
4. Add one or more metadata assignments: pick a metadata field, then set the value to apply.
5. Select **Save**.

<figure><img src="https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FvW3KUygS1lt6a4Hh4ubC%2Fimage.png?alt=media&amp;token=efaa8090-c00e-4aee-9abc-da713b6022a0" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="205.142333984375">Field</th><th width="128.76531982421875">Required</th><th>Rule</th></tr></thead><tbody><tr><td>Name</td><td>Yes</td><td>1 to 50 characters. Must be unique in the project, ignoring upper and lower case.</td></tr><tr><td>Description</td><td>No</td><td>Up to 140 characters. Shown as a tooltip wherever the action appears.</td></tr><tr><td>Icon</td><td>No</td><td>Choose from the icon library. A sparkle icon is used if none is set.</td></tr><tr><td>Type</td><td>Yes</td><td><strong>Set metadata</strong> is the only option today.</td></tr><tr><td>Metadata assignments</td><td>Yes</td><td>1 to 10 rows. Each row is a field and a value. You cannot use the same field twice in one action.</td></tr></tbody></table>

Each value must suit its field type.

<table><thead><tr><th width="209.15020751953125">Field type</th><th>What the value must be</th></tr></thead><tbody><tr><td>Text</td><td>Not empty</td></tr><tr><td>Single select</td><td>One of the values defined for the field</td></tr><tr><td>Multi-select</td><td>At least one value</td></tr><tr><td>Date</td><td>A valid date</td></tr><tr><td>Number</td><td>A valid number</td></tr><tr><td>Boolean</td><td>An explicit true or false</td></tr></tbody></table>

If your project has no metadata fields yet, create them first in Metadata settings.

### How do I pin an action?

Pinning promotes one action to a button, so the action your team uses most is no longer tucked away in a menu. In the actions list, select the star on the row of the action you want to pin. Only one action can be pinned at a time, so pinning another replaces the first.

A pinned action appears in two places:

* **Multi-select bar.** A button with the action's icon and name appears between Delete and Download. It applies to every selected asset.
* **Asset Details window.** The button replaces the Edit image or Edit video button, and it shows for every asset type, including PDFs and audio files that had no edit button before.

The hover icons on asset cards do not change. A pinned action stays in the card's **...** menu like any other action.

If you delete the pinned action, the button disappears and Edit image or Edit video returns in the Asset Details window.

You can also edit, clone or delete an action from its row. Cloning creates an unpinned copy named "\<name> copy".

### How do I run a custom action?

Select one or more assets, then choose the action from any of these places:

<table><thead><tr><th width="222.87445068359375">Where</th><th>How to find the action</th></tr></thead><tbody><tr><td>Right-click menu</td><td>Open <strong>Edit</strong>. Custom actions are listed in their own group below the built-in entries.</td></tr><tr><td>Asset card, grid view</td><td>Hover over the card and open the <strong>...</strong> menu.</td></tr><tr><td>Multi-select bar</td><td>Open the <strong>...</strong> overflow in the top action bar, or use the pinned button.</td></tr><tr><td>Asset Details window</td><td>Open the <strong>...</strong> overflow, or use the pinned button.</td></tr></tbody></table>

The action runs as soon as you select it. There is no confirmation step, and the open asset or list updates straight away without a refresh. Custom actions are listed alphabetically by name.

### Frequently asked questions

#### Can I apply a custom action to many assets at once?

Yes. Select several assets and run the action from the multi-select bar or the right-click menu. It is applied to every selected asset.

#### Can I undo a custom action?

Custom actions run immediately and have no confirmation step, so give each action a clear name and a description that explains what it changes.

#### Can I create actions other than setting metadata?

Not yet. Set metadata is the only action type today.

### Related pages

* [Metadata settings](https://docs.scaleflex.com/digital-asset-management-dam/settings/metadata.md): create the fields your actions will set.
* [Context menu](https://docs.scaleflex.com/digital-asset-management-dam/library/assets/asset-details-window/asset-actions/context-menu-...-button.md): the menu where custom actions appear.
* [Edit media](https://docs.scaleflex.com/digital-asset-management-dam/library/assets/asset-details-window/asset-actions/edit-media-image-video-etc.md): the Edit image and Edit video actions a pinned action replaces.
