We’re trying to add to existing Surveys using the API, in order to integrate with Ruby on Rails. There seem to be a couple of issues with the Contacts that are making it messy to use:
- “allowdupe=false” does not seem to do anything when adding a Contact (ie: another entry is added with the same email address on multiple “_method=PUT” calls).
- There does not seem to be a way to verify that a Contact does not already exist with the same email address without downloading the entire list and parsing it into an array.
Any suggestions for cleanly avoiding duplicate Contacts via the API?
Hi Bernadette, thanks for posting to Community! I’m very sorry for the bad behavior in our app that you’ve run in to, and would be happy to have that corrected by our Engineering team.
To be clear, the “allowdupe” parameter should be doing exactly what you want — if you specify allowdupe=false, you should not end up with duplicate contacts.
I’ll update this answer with a link to the Known Issue once it has been added, so you may opt to be notified once this has been resolved if you like
Edit: This issue has now been added to our Known Issues! You may view and subscribe to updates here: https://community.surveygizmo.com/?p=3970