+ 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