Delete contact and automatically inform former owner?SOLVE
Oct 21, 2020 8:21 AM
We have an internal policy in place to automatically delete the contact from the CRM via API, if someone revokes his or her opt-in.
But I would love to let the former owner of this contact know about what happened. So is there a way of automatically sending a note to the former owner?
Solved! Go to Solution.
Oct 22, 2020 2:00 PM
@Oliver75 what kind of setup handles your API request?
I'm assuming that when the opt out process is triggered (e.g its a workflow with opted out == true, send webhook request to X) then your server receives the contact ID that you then use to call the DELETE contact method
If you're already working on the API level, you could always request contact owner email from the contact record _before_ you send the delete request, and then send an email to the owner via mailgun or something similar.
However, if it is indeed the workflow + webhook setup that you have going, you could simply just add a step to your workflow:
All things considered though, Im assuming here you are using a webhook server + have access to workflows. If that's not the case please let me know what you are actually using to API delete contacts and I'll try to help out.