# CRM - How to mark opportunities as “Lost” by lead creation date

Imagine that you have a pipeline with opportunities linked to old leads, and you want to change the status of those opportunities to “Lost”.

Follow these steps:<br>

1 - Access the pipeline;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FQtyi5BZWCrUclAyigD6L%2Fcrm1.png?alt=media&#x26;token=0437c7cd-fe00-4f03-acb7-71878534a21d" alt=""><figcaption></figcaption></figure>

2 - Choose the pipeline;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FPUNcnP0rXdvnVklxjSzV%2Fcrm2.png?alt=media&#x26;token=00c58915-d072-4fe8-be43-1347e644716d" alt=""><figcaption></figcaption></figure>

3 - Click the automation icon, choose “Pipeline Automation”, and finally select “\
\+ New automation”;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fj4HPbkbXjr0zQyQxDccT%2Fcrm3.png?alt=media&#x26;token=c4c13987-c45c-4934-9da6-af8692fa0670" alt=""><figcaption></figcaption></figure>

**NOTE: The pipeline automation will execute the action in all stages.**

But you can also configure this same automation per stage by clicking the + icon on the desired stage.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F18wWjj7YMMbvDIRJcobZ%2Fcrm4.png?alt=media&#x26;token=deaf317d-a75a-496d-b38c-4c2c3d1043ac" alt=""><figcaption></figcaption></figure>

4 - Enter a title;&#x20;

* In + Condition choose “Lead Field Value >> Creation Date, configure according to the desired date;&#x20;
* In + Action choose “Change opportunity status” >> Choose the status and the reason.&#x20;
* Select YES for “Only a single trigger per lead, and click Save

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FNs4PxhWUlD3S9A3MTJCb%2Fcrm5.png?alt=media&#x26;token=e5b90c58-6594-4c57-a54f-4e504a148bdf" alt=""><figcaption></figcaption></figure>
