+ Start a Discussion
SFDC 1904SFDC 1904 

Error with onclick javascript in a custom button.

I am getting error on click of button on list view. 
Error: A problem with OnClick JavaScript for this button or link was encountered: {faultcode:'sf:INVALID_FIELD,faultstring:'INVALID_FIELD: SELECT Account__c,payload__c from tc__c 

Payload__c's Data Type=Rich Text Area(131072).

Why are we getting error on quering payload__c field in dynamic query?
Cloud_forceCloud_force
can you please share the full javascript code.
SFDC 1904SFDC 1904

I got the answer:

Earlier I was using this piece of code --> 
{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")}

When I changed the code to latest versions -->
{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}

I was able to query for Rich Text data field.