+ Start a Discussion
ruchika Nayyarruchika Nayyar 

if (objC.AccountId!=null && objC.myruchika__fee__c!=TriggeroldMap.get(objC.AccountID).myruchika__fee__c)

error method doesnot exist
Ruchika Nayyar,

Your code seems fine, can you please paste some more code around this line, it is possible that error is for previous line.

Ajay K DubediAjay K Dubedi
Hi ruchika,
I think myruchika__fee__c is a Field of "objC"  so you have to use :
if (objC.AccountId!=null && objC.myruchika__fee__c!=TriggeroldMap.get(objC.Id).myruchika__fee__c)
If this code do not solve your problem, please let me know "myruchika__fee__c" belongs to which object and what do you want to compare !
Rohit K SethiRohit K Sethi

I thing Ajay is Right you need to pass objC.id because the OldMap uses the id on which the trigger is written.
But one more thing "method doesnot exist" is genrated due to write the trigger on insert, because the OldMap does not allow in new context.