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
ruchika Nayyarruchika Nayyar 

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

error method doesnot exist
ArvindyadavArvindyadav
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.

Thanks! 
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 !
Regards,
Ajay
 
Rohit K SethiRohit K Sethi
hi,

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.

Thanks.