You need to sign in to do that
Don't have an account?
Case merge Error............ in trigger and developer console...
Can anybody help me i am merging cases, those are not merging. If i am going to merg the case records it shows an error can anybody help to rectify this Error the Error is" Error: Compile Error: Specified type SOBJECT:Case cannot be merged at line 9 column 1 "
and this is my code...........................................
Case masterCase = [SELECT Id, casenumber,Accountid,Contactid,origin FROM Case WHERE Accountid = '0019000000jiDIX' AND Contactid = '0039000000iOKkH' AND origin = 'Phone' LIMIT 1]; System.debug('************master*****************'+mastercase); Case mergeCase = [SELECT Id, casenumber,Accountid,Contactid,origin FROM Case WHERE Accountid = '0019000000jiDIX' AND Contactid = '0039000000iOKkH' AND origin = 'Email' LIMIT 1]; System.debug('************merge*****************'+mergecase);
try {
merge masterCase mergeCase;
}
catch (DmlException e) {
// Process exception here
}
Hi,
Could you please validate if both the queries return a record or one of them is null?
Happy to help you!
hi digambar i need Trigger and apex class for merge the Case object records. So can u Please send me that code please...?
yes both are retrived a record..
Hi Ganesh,
See the code for merging case records,
http://blog.crmscience.com/2012/05/merging-cases-in-salesforce.html
Regards,
Ashish
Or Try this App from the App exchange,
https://appexchange.salesforce.com/listingDetail?listingId=a0N30000005vPKWEA2
Regards,
Ashish