Closed HeadStudios closed 1 year ago
That's a lot to run through 😅
Having not investigated the full history of your ChatGPT session, I want to indicate that I believe CSV Import already supports what you're trying to achieve; you shouldn't need to change any code within the package to do what you're trying to do here
Your resource and database just need to be set up correctly:
unique
validation rule to your email
field in your Nova Resource definitionUNIQUE
index to your email
columnThe import summary in the latest versions of CSV Import should provide you with enough detail to know what has happened:
Thank you so much!
Glad I could help @HeadStudios 👍🏼
How should I modify my code to prevent duplicates (based on email column of Contact model) when importing through CSV and ideally showing error on frontend? Below is my attempts so far: https://chat.openai.com/share/aa72b7fb-fb5f-432c-b295-a2e68c3e61fd
Thank you!