- changed status to open
SOQL completions include invalid options
When I use Control+Space to get a list of possible fields to insert in the SOQL query window, the list includes options that are not valid for that position. For example, if I query TopicAssignment I get a suggestion like this:
If I want to filter by the object type that the TopicAssignment is for, I should choose EntityType
. But, since SObjectType
is offered, it's very tempting. ContextRecord
is also not a valid choice here.
If possible, it would be good to filter this list to just things that are allowed in this context of a query field.
Comments (5)
-
repo owner -
repo owner Fix committed for the next build. Now the list is filtered to be those that pass IC2’s
isSObjectField
filter (which should have already been happening). That eliminates things likeSObjectType
andfields
, but it doesn’t eliminate things likeContextRecord
which are reported by the Salesforce APIs as part of the schema for that SObject type. -
reporter Thanks, Scott!
-
repo owner - changed status to resolved
Delivered in 2.2.7.5.
-
repo owner - removed version
Removing version: Unassigned (automated comment)
- Log in to comment
Yeah,
SObjectType
is inherited fromSObject
for use in Apex. I could certainly see that being filtered out when listing fields for selection. As forContextRecord
, that's coming from the Salesforce API and not something IC2 has fabricated. I hesitate to filter out anything reported by the API as being part of the SObject "schema".