# Impossible (for me anyway) automation task

**URL:** <https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146>\
**Category:** Get Help\
**Tags:** custom, cosmicgiant, entry-automation, gravity-flow\
**Created:** [October 30, 2023, 2:40pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146 "2023-10-30T14:40:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![user64b9df5e85ccb026](https://avatars.discourse-cdn.com/v4/letter/u/96bed5/32.png) [@user64b9df5e85ccb026](https://community.gravityforms.com/u/user64b9df5e85ccb026)\
**Post date:** [October 30, 2023, 2:40pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/1 "2023-10-30T14:40:01Z")

</div>

I have a holiday booking form on my site. The admin fills in a form of their own to set the date that the holiday calendar resets every year (so employees’ ‘already approved’ dates are removed and they revert to their original balance - in theory anyway)

How can I delete entries based on these two conditions being met, as an automated process (which are also imported as values into the form):

1/ ‘Renewal date’ being reached AND  
2/ ‘A unique identifier’ (doesn’t matter what it is, I just need the operator to work with 2 values)

I’m not expecting much on this one, as it pushes too many limits, but I thought I’d give it a go… The answer may not be too far from this:

[https://community.gravityforms.com/t/remove-entry-based-on-value-resolved/3892](https://community.gravityforms.com/t/remove-entry-based-on-value-resolved/3892)

I’d be grateful (and surprised) if anyone can help.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 31, 2023, 4:10pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/2 "2023-10-31T16:10:59Z")

</div>

Hi Mark. The closest I know to this existing anywhere is this plugin from Cosmic Giant:

> **[Setting Up a Delete Entries Task - CosmicGiant](https://cosmicgiant.com/documentation/entry-automation/setting-up-a-delete-entries-task/)**
>
> Everything you need to know about setting up Delete Entries Tasks in the Entry Automation plugin for Gravity Forms.

That can automate the deletion of entries by date, but I don’t see the ability to also include another criteria (your unique identifier.). They may have a filter available for that. I recommend contacting them to ask.

Thank you.

---

<div class="post-metadata">

**Author:** ![JamieO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jamieo/32/2521_2.png) [@JamieO](https://community.gravityforms.com/u/JamieO)\
**Post date:** [October 31, 2023, 8:51pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/3 "2023-10-31T20:51:21Z")

</div>

Hi Mark,

Have you looked at Gravity Flow’s [Form Connector](https://gravityflow.io/downloads/form-connector/) extension that has a [Delete an Entry step type](https://docs.gravityflow.io/article/201-delete-an-entry)?

Scheduling the deletion based on a field date in the form (or one that you define in the step settings) along with other conditional logic is prety straight forward to it.

Or you could have a combination of the [Update Fields step](https://docs.gravityflow.io/article/248-form-connector-update-fields) (to reset their entry selections automatically) and then [User Input](https://docs.gravityflow.io/article/23-configuring-user-input-step) + [Approval step](https://docs.gravityflow.io/article/22-approval-process) if there is an approval process to confirm chosen holidates.

Regards,  
Jamie

---

<div class="post-metadata">

**Author:** ![user64b9df5e85ccb026](https://avatars.discourse-cdn.com/v4/letter/u/96bed5/32.png) [@user64b9df5e85ccb026](https://community.gravityforms.com/u/user64b9df5e85ccb026)\
**Post date:** [October 31, 2023, 9:41pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/4 "2023-10-31T21:41:33Z")

</div>

WOW!

Nice

---

<div class="post-metadata">

**Author:** ![travislopes](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/travislopes/32/14645_2.png) [@travislopes](https://community.gravityforms.com/u/travislopes)\
**Post date:** [October 31, 2023, 11:33pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/5 "2023-10-31T23:33:38Z")

</div>

Entry Automation can absolutely achieve this, as Chris mentioned.

You can target entries based on the date chosen in a Date field (or the date the entry was created/updated). From there, you can use Gravity Forms conditional logic to further narrow down which entries are deleted, likes ones containing your unique identifier.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [November 30, 2023, 11:34pm UTC](https://community.gravityforms.com/t/impossible-for-me-anyway-automation-task/16146/6 "2023-11-30T23:34:11Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
