SOLVED

Catch Deleted Leads via API

Go to solution
rish_tracktik
Level 2

Catch Deleted Leads via API

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Catch Deleted Leads via API

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).

View solution in original post

1 REPLY 1
SanfordWhiteman
Level 10 - Community Moderator

Re: Catch Deleted Leads via API

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).