Skip to main content

Hi 

 

idea is to populate the competitor name with lowest price in Leading competitor column . I feel somethin to do with picklist fields  on opps . Can someone please confirm and help .

 

#Automation

 

I have written this code and seems to be saving ok but on salesforce org i receive an error as below 

Error 

Error While saving opp with Code

Code written as below 

 

Code - Leading Competitor.PNG

2 个回答
  1. 2021年9月19日 05:12

    Hi  Amit ,

     

     Please change the 20th line as follows

     

    for(Integer i= 0; i < competitorPrices.size(); 1++) {

0/9000