function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John_SFDCJohn_SFDC 

Email to Case Functinality

Am working on Email to Case functionality.
In the Email body,I have the Roll Number  in the body and Used the Sring methods to saparate that number from body.and i have maped that number to custom field(Tag_ID__C).But Email to case functionality allows the duplicate cases.How we can restrict the Duplicate cases.

I know one option : Change the Filed As Unique(Check the Unique  Check box ).

But it is effecting the my other functionaity.Any other possible Solution please?.

Thanks,
John.
Best Answer chosen by John_SFDC
John_SFDCJohn_SFDC
Issue Resoved 
Thanks all

All Answers

Naval Sharma4Naval Sharma4
Hi John,

You can create duplicate rules on your case object.

or Write a trigger on your case object that will not allow users to submit duplicate cases.

Thanks,
Naval
Allen li 3Allen li 3
I think the best way is duplicate rules.

FYI, you can try a new salesforce development IDE named Metaforce on chrome application platform. it's a great tool for coding, deploying, etc.. you can try to search and install it in chrome webstore or click this link.(https://chrome.google.com/webstore/detail/metaforce/hhnkaakhlhngcdckdiogpkjihnmgodep)
User-added image
John_SFDCJohn_SFDC
Duplicate Rues are Not Enabled fro Case Object.It is Standard Functionality
Naval Sharma4Naval Sharma4
Hi John,

Sorry for late reply. If that's the case then you will have to write a trigger. Let me know if you need my help in that.


Thanks,
Naval
John_SFDCJohn_SFDC
Please suggest me with an example
John_SFDCJohn_SFDC
Issue Resoved 
Thanks all
This was selected as the best answer