", "answerCount": 2, "upvoteCount": 0, "datePublished": "2015-05-21T15:55:38.000Z", "author": { "@type": "Person", "name": "Thomas Gagne", "url": "https://trailblazers.salesforce.com/profileView?u=00530000004MbsWAAS", "affiliation": { "@type": "Organization", "name": "Xede Consulting Group, Inc." } }, "suggestedAnswer": [ { "@type": "Answer", "text": "I recently encountered this error. Certain users could successfully query against ApexPage, while others received the \"not supported\" error. Enabling the \"View Setup and Configuration\" permission on the affected User's Profile would prevent this error, but there is obviously more to consider before regarding this as a solution.", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4U1pSAF", "datePublished": "2019-07-06T12:37:24.000Z", "author": { "@type": "Person", "name": "Brian Piggins", "url": "https://trailblazers.salesforce.com/profileView?u=0053A00000COCqdQAH", "affiliation": { "@type": "Organization", "name": "H.W. Kaufman" } } } ] } }
Skip to main content
Super simple page, but when I run it I get an exception, "sObject type 'CollaborationGroupMember' is not supported."  I'm able to query other objects, and Googling around I haven't found an explanation why--or I'm Googling the wrong terms.

However, this link might suggest such a query from VF just isn't possible.

http://salesforce.stackexchange.com/questions/3574/receive-this-error-from-installed-package-system-queryexception-sobject-type

 

<apex:page >

<apex:includescript value="/soap/ajax/33.0/connection.js" />

<apex:includescript value="/soap/ajax/33.0/apex.js" />

<script>

try {

var query = "select collaborationGroupId, collaborationGroup.name from CollaborationGroupMember where memberid = '{!$User.ID}'"

//var query = "select id from account";

alert(query);

//sforce.connection.sessionId = "{!$Api.Session_ID}";

var records = sforce.connection.query(query);

console.log(records);

}

catch(e) {

alert(e);

}

</script>

</apex:page>

 
2 answers
  1. Jul 6, 2019, 12:37 PM
    I recently encountered this error. Certain users could successfully query against ApexPage, while others received the "not supported" error. Enabling the "View Setup and Configuration" permission on the affected User's Profile would prevent this error, but there is obviously more to consider before regarding this as a solution.
0/9000