• krawl78
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,

 

I'm receiving the following error for code that has existed in our org for several years - I've only changed the reference from Estimated_Volume__c to Estimated_Annual_Volume__c.

 

Method does not exist or incorrect signature: EncodingUtil.urlEncode(Decimal, String)

 

Original lines:

        if(rec.Estimated_Volume__c != null){
            url += '&' + '00N600000029OCc=' + EncodingUtil.urlEncode(rec.Estimated_Volume__c,'UTF-8');

 

 

Revised lines:

        if(rec.Estimated_Annual_Volume__c != null){
            url += '&' + '00N600000029OCc=' + EncodingUtil.urlEncode(rec.Estimated_Annual_Volume__c,'UTF-8');

 

Any help would be greatly appreciated! 

 

Thanks!

Hi,

 

I'm receiving the following error for code that has existed in our org for several years - I've only changed the reference from Estimated_Volume__c to Estimated_Annual_Volume__c.

 

Method does not exist or incorrect signature: EncodingUtil.urlEncode(Decimal, String)

 

Original lines:

        if(rec.Estimated_Volume__c != null){
            url += '&' + '00N600000029OCc=' + EncodingUtil.urlEncode(rec.Estimated_Volume__c,'UTF-8');

 

 

Revised lines:

        if(rec.Estimated_Annual_Volume__c != null){
            url += '&' + '00N600000029OCc=' + EncodingUtil.urlEncode(rec.Estimated_Annual_Volume__c,'UTF-8');

 

Any help would be greatly appreciated! 

 

Thanks!