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
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?
can you please share the full javascript code.
SFDC 1904SFDC 1904

I got the answer:

Earlier I was using this piece of code --> 

When I changed the code to latest versions -->

I was able to query for Rich Text data field.