Hi Guys, I'm trying to write a script which will a...
# suitescript
n
Hi Guys, I'm trying to write a script which will avoid the duplicate case creation once the enduser send mail on the netsuite mail id! I can't find the module which will be used to avoid record(case) creation based on a condition!
Copy code
if(condtion){
avoid record(case) creation code!!! .....I need this
}
p
What are you actually stuck on?
What you need to do: 1. identify what constitutes a duplicate 2. write a search for (1) 3. check that beforesubmit UEs fire for case creation via inbound email 4. check that you can use
throw(error.create({}))
or similar in the UE to stop the case from being created 5. do you want the "new" duplicate data to be added to the existing case? If so, how are you going to do that? 6. If it's low volume, why don't you just use the built-in merge functionality?
n
@PNJ Thanks for your msg! I don't want the user to create a duplicate case for same issue. endusers try and mail on same thread for other issues too, they don't create another case or add createnetsuite mail id for every mail on the thread so the duplicate cases gets created and I don't want those to be created!!!
p
It sounds like you just need to make use of merges, and also educate your users
n
haha!, users actually don't have time to deal with the mail id's thats why I need to write a UE which will avoid the duplicate case creation!
the merge won't work, since it will show all the open tickets for that user who created a new ticket!!