Remove Duplicates from Excel #3277
Unanswered
Pushkraj19
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I searched about this on the internet everywhere no luck.
The question is how can I make sure to avoid duplicates to my mailing list. Where the email needs to be unique but the list_id should be the same cause it's the id of that mailing list where the email is inserted.
I tried validation didn't work. I tried rule didn't work :( also, the part issue is row guessing I don't know how to use row guess in excel validation so I used a single row and uploaded a single row with email as an excel column and email as a row validation but it didn't work.
I also tried model validation inside the model(array $row) but when I count for presence email it always gives me zero it only starts to count once the data is inserted into the database.
my current code is
I thought about creating a table email as unique but how can I do it when the 2 list_id can have the same email.
Please someone help me.
Beta Was this translation helpful? Give feedback.
All reactions