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
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??

Sonam_SFDCSonam_SFDC

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:

https://help.salesforce.com/apex/HTViewHelpDoc?id=cs_define.htm&language=en_US

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.