Catch Deleted Leads via API | Community
Skip to main content
Level 2
September 1, 2020
Solved

Catch Deleted Leads via API

  • September 1, 2020
  • 1 reply
  • 2302 views

Hi,

 

We have connected Marketo to our 3rd party platform and we are doing a Bulk import to Marketo via REST API. 

Now, when a user is deleted from this 3rd party app, how can I flag Marketo about the deleted record and eventually delete it from the Marketo database.

Currently, the script is running nightly to update, if any new records are added to our platform and a lead is created in Marketo.

 

We need to catch all the deleted leads via this API or some other method and delete it from our DB.

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Add a tombstone field, Mark for Deletion At. This should be a DateTime field. Update this field via Bulk Import. Run a daily batch Smart Campaign to delete leads whose field is today (or a couple of days ago, if you want to give yourself an "undelete" function for emergencies).

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 1, 2020

Add a tombstone field, Mark for Deletion At. This should be a DateTime field. Update this field via Bulk Import. Run a daily batch Smart Campaign to delete leads whose field is today (or a couple of days ago, if you want to give yourself an "undelete" function for emergencies).