Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dangling records in Mailchimp if deleted in Webling but sync failed #57

Open
cyrillbolliger opened this issue Jul 10, 2022 · 0 comments

Comments

@cyrillbolliger
Copy link
Contributor

If a record was deleted in Webling, but the sync afterwards failed until a full sync is done, the record is not deleted in Mailchimp (as the fullsync doesn't know about deleted records).

Result

There exists a record in Mailchimp that has the WEBLINGID of the deleted record in Webling and is thus invalid.

Expected Result

The record is also deleted in Mailchimp.

Possible Fix

After full sync: Check if all WEBLINGIDs that are currently in Mailchimp exist in Webling.

If one does not exist:

  1. Search for the records email address in Webling.
    1.1. If found, get main record and continue with step 2
    1.2. Else delete record in Mailchimp

  2. If main record has different email address:
    2.1. delete record in Mailchimp.
    2.2. sync main record

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant