How to add a function to delete records.
Hello,
I'm trying to make a function to a delete record after a field is updated to a certain response. What I have is the Leads, with a field called Prospective Student Status; and when it's response is Accepted, a duplicate record is created in the Contacts module. That part works fine, but I want the old leads record to be deleted as well.
I have a function that will delete an individual based on their ID number, but I need it to target anyone with that "Accepted" response, not just a single individual. Any help would be really appreciated!