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
SFDC-vishnuSFDC-vishnu 

query dosent give rows in trigger but giving rows in anynomous block

user u:[Select Id,IS_Code__c,Deployable_Field__c from User where
Deployable_Field__c like :'%|'+IS_number or Deployable_Field__c like
:IS_number+'|%'])

 

I have this query in trigger on Account (insert,update)

 

this query dosent return rows in trigger,but same thing is giving rows when it is executed in Anynomus block..

 

please help me out in this