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
Ragul MRagul M 

SOQL for ApexTrigger filtered on Name field returns no results

**querying all my trigger name**
[![enter image description here][1]][1]

**filtering by specific name. But no result found ?**

[![enter image description here][2]][2]

***what is that I am missing ?***

**Note: Same query works perfectly in production** 


  [1]: https://i.stack.imgur.com/3pAqO.png
  [2]: https://i.stack.imgur.com/dHWDa.png
Ragul MRagul M
Querying all my trigger name
User-added image
filtering by specific name. But no result found ?

User-added image

what is that I am missing ?

**Note: Same query works perfectly in production** 

 
SwethaSwetha (Salesforce Developers) 
Hi Ragul,
As mentioned in the StackExchange post, 
https://salesforce.stackexchange.com/questions/409656/soql-for-apextrigger-filtered-on-name-field-returns-no-results/409748#409748

The Salesforce Product team has filed bug #W-14050962 internally regarding the inconsistent query result on ApexTrigger post-Winter24 release and is working on priority to address this.

Basically, Triggers created before Winter 24 release are not queryable by Name field. There is no known issue created for this scenario at the moment. I will update the Stackexchange thread as I have an ETA on the fix.

If this information helps, please mark the answer as best so it can help others too. Thank you