# Managing Workflows

Workflows can be deleted to improve organization or when they are no longer needed. If removed by accident, these deleted workflows can also be restored.

Workflows can also be triggered directly from the Shopify admin! This feature is supported for Orders, Draft Orders, Products, and Customers in Shopify.

## Deleting a workflow

Navigate to the workflow you want to delete on the Workflows tab, select the three vertical dots to the right of the workflow title, then click Delete.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FK2S6ozm2U21Fq6WyJBP6%2Fmanaging-workflows-deleting-a-workflow.png?alt=media&#x26;token=8e594c43-e7f5-4b25-a227-77742dc10b20" alt=""><figcaption></figcaption></figure>

## Restoring a workflow

1. Click Deleted on the Workflows tab.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FK4V6pAZmsZTxSlcpASFz%2Fmanaging-workflows-deleted-tab.png?alt=media&#x26;token=3e43f7c5-436f-4ea4-8960-6c723252cc0c" alt=""><figcaption></figcaption></figure>

2. Locate the desired workflow, then click Restore on the far right.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FbyZFD5BJrQeALCkBI5c6%2Fmanaging-workflows-restore.png?alt=media&#x26;token=8b762230-d21d-419a-98b1-e8fb70ea6830" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** Deleted workflows are stored for 30 days. After 30 days, they are permanently deleted and cannot be recovered.
{% endhint %}

## Triggering workflows from the Shopify admin

Workflows can be triggered from both the individual view and the list view in Shopify. However, the workflows must be turned on in MESA for them to run successfully. Follow the steps for Individual View to run a workflow on a single order (or other instance), and follow the steps for List View to run a workflow across multiple orders (or different instances).

### Individual view

The example below will run a workflow that sends Shopify Orders to Google Sheets from the Shopify interface.

1. Navigate to the Order, Draft Order, Product, or Customer that matches the workflow trigger.
2. Select More actions > Run MESA Workflow to run an individual Order, Draft Order, Product, or Customer.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F6xAYtxb8VnPXhMUfrJjw%2Fmanaging-workflows-run-mesa.png?alt=media&#x26;token=7cb9e521-5243-453e-b709-26ecdf73d697" alt=""><figcaption></figcaption></figure>

3. Select the active workflow you want to run this on.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F9cmKrur65GII9U2UUSo6%2Fmanaging-workflows-select-automation.png?alt=media&#x26;token=2b5d6255-9e90-4eeb-ada8-8e783a08bbfa" alt=""><figcaption></figcaption></figure>

4. Click Run workflow.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FDgraLZJXrbDOpKoZszKF%2Fmanaging-workflows-run-workflow.png?alt=media&#x26;token=4076359b-9fe2-473d-ac4e-ca12a2e38f7d" alt=""><figcaption></figcaption></figure>

5. Optionally, select View my workflows to redirect to your workflows page in MESA.

When a workflow is triggered from the Shopify admin, you will see a badge indicating the source of the run in the workflow [Activity](https://docs.getmesa.com/workflow-activity).

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FBdmXU0C0IKyDreydUTLZ%2Fimage.png?alt=media&#x26;token=a3e21895-eda7-4e26-a391-2eb31edea26a" alt=""><figcaption></figcaption></figure>

### List view

This example demonstrates how to run multiple orders on a workflow simultaneously.

1. From the list view, select one or more orders.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FEt8WeHxb9uinRukETDaS%2Fmanaging-workflows-list-view.png?alt=media&#x26;token=7aefe319-8a73-4065-b7a0-d2a1aaa5e0c8" alt=""><figcaption></figcaption></figure>

2. Next, select the three horizontal dots to the right of Capture payments.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FbzFEGea3G2LuyJawFd0B%2Fmanaging-workflows-horizontal-dots.png?alt=media&#x26;token=219ed7a0-a9c0-4382-b013-d754d989d20f" alt=""><figcaption></figcaption></figure>

3. Select Run MESA Workflow under the Apps section.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F0LdACgPEBvFENuLZ6XLj%2Fmanaging-workflows-run-mesa-workflow.png?alt=media&#x26;token=38dfd8b0-0e0d-4b72-9e0e-06dfbf9424d9" alt=""><figcaption></figcaption></figure>

4. Similar to Individual View, you can select which MESA workflow you'd like to run these orders on, then click Run workflow.
5. Optionally, select View my workflows to redirect to your workflows page in MESA.
