# Using delays in order to cancel a trigger in case of a mistake

**URL:** <https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724>\
**Category:** Questions\
**Created:** [July 12, 2022, 8:27am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724 "2022-07-12T08:27:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.make.com/u/Guillaume)\
**Post date:** [July 12, 2022, 8:27am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/1 "2022-07-12T08:27:40Z")

</div>

Hello everyone !

I want the opportunity to cancel the trigger of an automation if I make a mistake for example.

Here is an example :

The creation of an activity in my agenda will trigger the sending of an email. If there is a mistake in the activity log (wrong date for example), I want the possibility to erase the activity for a certain amount of time and cancel the trigger (the sending of an email).

I tried setting up a “sleep” module right after a trigger and then I created a filter to check if the activity still exists. The outcome I want is the possibility to erase the activity during the sleep period so it stops the rest of the scenario thanks to the filter (activity exists) placed after the sleep module.

Unfortunately, it does not work… Once I create an activity and I deleted it during the “sleep period”, Make thinks that the activity still exists and the email was sent. Basically, the filter is not working.

Do you know how I could solve this without working with data store ?

Thanks for your help !

Best,

 ![Capture d’écran 2022-07-12 à 10.29.00](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/f/f82e887bf8f587019bab2e0867ba4507192d27d3.png)  
 ![Capture d’écran 2022-07-12 à 10.30.55](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/8/85cf0371263572cf333003469ebf8f333ebd06df.jpeg)

---

<div class="post-metadata">

**Author:** ![JugaadiTech](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jugaaditech/32/1254_2.png) [@JugaadiTech](https://community.make.com/u/JugaadiTech)\
**Post date:** [July 12, 2022, 8:31am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/2 "2022-07-12T08:31:40Z")

</div>

the data is called only when the module that requests the data is triggered.

If you delete the data while the scenario is running, it will have no impact on the scenario execution (by design, as this could cause other cascade problems)

you can think of it like, when your module requests the data, " :make:make" makes a copy of that data, and uses the copy.

you could re-request the same data after the sleep to see if it still exists. and only continue scenario if true.

---

<div class="post-metadata">

**Author:** ![make\_expert](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_expert/32/3827_2.png) [@make\_expert](https://community.make.com/u/make_expert)\
**Post date:** [July 12, 2022, 8:34am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/3 "2022-07-12T08:34:20Z")

</div>

Hey @Guillaume,  
You can add another “get activity” action after sleep and see if that activity exists, if it doesn’t exist it means that was deleted.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/c/c56190fde02f01a5927b982a865a7a8e1e2b7b71.png)

[![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/b494dd4b09784955e7aa56413c3a90a9d70f5ac2.png)](https://www.upwork.com/freelancers/~01342b8f8487f506be)

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.make.com/u/Guillaume)\
**Post date:** [July 12, 2022, 8:46am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/4 "2022-07-12T08:46:27Z")

</div>

Too bad, I really thought that you got the solution but it is still not working ☹

I placed an “Get an activity” right after the sleep module and the module finds the activity ID even though it has been deleted in the meantime.

Thanks anyway for your help.

 ![Capture d’écran 2022-07-12 à 10.49.31](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/7/737f64747c4263076ecd37b77b4f8af6202c9e7e.png)  
 ![Capture d’écran 2022-07-12 à 10.49.48](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/7/740f30223f90c1e7e0beb9fe4fa2c340bada5bc7.jpeg)

---

<div class="post-metadata">

**Author:** ![JugaadiTech](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jugaaditech/32/1254_2.png) [@JugaadiTech](https://community.make.com/u/JugaadiTech)\
**Post date:** [July 12, 2022, 9:00am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/5 "2022-07-12T09:00:03Z")

</div>

can you show the output data of the 3rd module for me.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/6/639636bd07acb142ef9b675ce67ea65e83f57d89.png)  
be sure to redact sensitive data in the image you share here.

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.make.com/u/Guillaume)\
**Post date:** [July 12, 2022, 9:04am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/6 "2022-07-12T09:04:59Z")

</div>

Sure there you go 😃  
INPUT BUNDLE  
“id”:1945

OUTPUT BUNDLE  
[  
{  
“id”: 1945,  
“company\_id”: 10741125,  
“user\_id”: 14043597,  
“done”: false,  
“type”: “meeting”,  
“reference\_type”: null,  
“reference\_id”: null,  
“conference\_meeting\_client”: null,  
“conference\_meeting\_url”: null,  
“due\_date”: “2022-07-11T22:00:00.000Z”,  
“due\_time”: “09:45”,  
“duration”: “”,  
“busy\_flag”: null,  
“add\_time”: “2022-07-12T09:02:49.000Z”,  
“marked\_as\_done\_time”: “”,  
“last\_notification\_time”: null,  
“last\_notification\_user\_id”: null,  
“notification\_language\_id”: null,  
“subject”: “bb”,  
“public\_description”: “”,  
“calendar\_sync\_include\_context”: null,  
“location”: null,  
“org\_id”: null,  
“person\_id”: 605,  
“deal\_id”: 184,  
“lead\_id”: null,  
“active\_flag”: true,  
“update\_time”: “2022-07-12T09:02:49.000Z”,  
“update\_user\_id”: null,  
“source\_timezone”: null,  
“rec\_rule”: null,  
“rec\_rule\_extension”: null,  
“rec\_master\_activity\_id”: null,  
“conference\_meeting\_id”: null,  
“note”: null,  
“created\_by\_user\_id”: 14043597,  
“location\_subpremise”: null,  
“location\_street\_number”: null,  
“location\_route”: null,  
“location\_sublocality”: null,  
“location\_locality”: null,  
“location\_admin\_area\_level\_1”: null,  
“location\_admin\_area\_level\_2”: null,  
“location\_country”: null,  
“location\_postal\_code”: null,  
“location\_formatted\_address”: null,  
“attendees”: null,  
“participants”: [  
{  
“person\_id”: 605,  
“primary\_flag”: true  
}  
],  
“series”: null,  
“is\_recurring”: null,  
“org\_name”: null,  
“person\_name”: “Pierre Client”,  
“deal\_title”: “Rue des champs 5”,  
“lead\_title”: null,  
“owner\_name”: “Alexandre”,  
“person\_dropbox\_bcc”: “[waw@pipedrivemail.com](mailto:waw@pipedrivemail.com)”,  
“deal\_dropbox\_bcc”: “[waw+deal184@pipedrivemail.com](mailto:waw+deal184@pipedrivemail.com)”,  
“assigned\_to\_user\_id”: 14043597,  
“type\_name”: “1er Rendez-vous”,  
“lead”: null  
}  
]

---

<div class="post-metadata">

**Author:** ![JugaadiTech](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/jugaaditech/32/1254_2.png) [@JugaadiTech](https://community.make.com/u/JugaadiTech)\
**Post date:** [July 12, 2022, 10:00am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/8 "2022-07-12T10:00:23Z")

</div>

Alrighty, I did some tests in pipedrive, i think there is an unseen “recyclebin” that registers to the API still

This variable for an Activity  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/b/b567294ca371916d34eb41eefcfb141601cd8895.png)

This variable for a deleted activity  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/0/048deeeaf273668b832e56556dce8c3042f7285c.png)

So you filter between your 3rd and 4th modules for the active flag.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2b6a7d63c59b822826dce77dca98b2df81f92660.png)

I tested under your described conditions i think this should work @Guillaume  
I would still filter for activity existing as well, because i dont know how long pipedrive holds onto deleted data.

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.make.com/u/Guillaume)\
**Post date:** [July 12, 2022, 11:00am UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/9 "2022-07-12T11:00:47Z")

</div>

It’s (finally) working ! Thank you very much for your help 🙂

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 7, 2023, 2:28pm UTC](https://community.make.com/t/using-delays-in-order-to-cancel-a-trigger-in-case-of-a-mistake/2724/10 "2023-09-07T14:28:47Z")

</div>


