You need to sign in to do that
Don't have an account?
Akhil Katkam 5
Test class for given code
Hi Developer Community ,
please help me with the test class for below code,
thanks in advance
please help me with the test class for below code,
public static void fetchCompetitors(String recordId, String recId){ List<Opportunity> opp=new List<Opportunity>(); Opportunity o = [select id,Name,CIBoostVersion1__MainCompetitors__c from Opportunity where id=:recordId]; List<CIBoostVersion1__Competitor__c> cmptList=[select id,Name from CIBoostVersion1__Competitor__c where id=:recId]; for(CIBoostVersion1__Competitor__c comp : cmptList){ o.CIBoostVersion1__MainCompetitors__c = comp.Name; } update o; }
thanks in advance
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!
All Answers
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!