You need to sign in to do that
Don't have an account?
Pallavi singh
Lightning component to show all the cases with duplicates
Can we acheive this through lightning component to show the duplicate cases on the bases of Email, Casenumber and in subject if casenumber is mentioned.
Something like this.
Thank you in advance
Something like this.
Thank you in advance
Create an Apex controller:
Create the Lightning component controller:
If you find this answer helpful, Please mark it as the best answer.
All Answers
Assuming that you want to retrieve duplicate cases based on a specific field (e.g. Case Number), you can use the following Apex query to fetch the duplicate cases:
This query will retrieve all the cases that have a duplicate CaseNumber, along with the count of duplicate cases. You can then use this list to populate the datatable in your component.
After this you can create a VF page to display the duplicate cases in a datatable.
If it helps please mark this as best answer.
Thank you.
Create an Apex controller:
Create the Lightning component controller:
If you find this answer helpful, Please mark it as the best answer.
Thank you so much for your help.
But in the query [SELECT CaseNumber, Subject, Contact.Email FROM Case WHERE Contact.Email = :email :caseNumberCondition :subjectCondition]; can we just replace the sign '=:' as its throwing an error.
Thank you
Pallavi