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
DJ 367DJ 367 

"sf:INVALID_TYPE", faultstring: "INVALID_TYPE: sObject type 'ContentDocumentLink' is not supported."

Hello All,
I am querying 'ContentDocumentLink'  in javascript visualforce and I am getting above error any way to fix this. Thanks

Here I am getting proper id value(MyId) as well.
var Content ="Select Id,ContentDocumentId From ContentDocumentLink where LinkedEntityId="  + "'MyId'" ;
			var ContentQuery = sforce.connection.query(Content);
			var records = ContentQuery.getArray('ContentQuery');

Santosh Reddy MaddhuriSantosh Reddy Maddhuri

Hi DJ 367,

It is mostly due to settings issue. Go to Setup and search settings for Content Document Link and if not enabled, check the follwoing option

Enable Salesforce CRM Content

Setup --> Salesforce Files --> Salesforce CRM Content.

Hope this Helps!



DJ 367DJ 367
Hi Santosh,

I tried enablig but getting the same issue.