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
sai.sfsai.sf 

Soql

Hi All,

 

 Soql in ajax button is not giving same results for all users.Any Thoughts?

 

Thanks

ForceCoderForceCoder

What is different about the users that are having different results?  Could it be that they have different FLS or different sharing rules on a dependent object that makes some records visible to some users and not to others?

Anup JadhavAnup Jadhav

Are you using "with sharing" keyword in your apex class? If you are, then that's probably why you are getting different results for different users.

 

- Anup