+ Start a Discussion
sami amisami ami 

Setting global parameters and using n SOQL

Can i set SOQL order by values in custom settings or somewhere in my org...where admin can change it?rather than in my apex class??


Hi Ramesh,


Custom Settings are available in the Admin console, to create or edit a custom setting:

  1. From Setup, click Develop | Custom Settings.

Read more to know more:


sami amisami ami
yes.But how can i call that in my SOQL?
Like..select id from case where condition and orderby 'my custom setting should be called here'

How can i get this?
kevin lamkevin lam

I think you need to use Dynamic SOQL.