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
bryanobryano 

Querying IdeaComment with API 28

I have a simple query that works with API 27 but not in API 28.  

select Id from IdeaComment where CreatedDate <= 2013-08-12T15:23:00.000Z

In version 28, it throws the following error:

MALFORMED_QUERY: Implementation restriction. When querying the Idea Comment object, you must filter using the following syntax: CommunityId = [single ID], Id = [single ID], IdeaId = [single ID], Id IN [list of IDs], or IdeaId IN [list of IDs].

I didn't see any notes in the API docs regarding a change to this object except for 3 new fields being added.

Has anyone else come across this?

Vinita_SFDCVinita_SFDC

Hello Bryano,

 

This is working as per design. In version 28 restriction of including the CommunityId has been introduced. In lower version the query will work perfectly.