Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is the user/queue set as the Default Case Owner and Automated Case User accessible via Apex?

I'm creating a visualforce extension where I want to assign either the Default Case Owner or the Automated Case User as the Case OwnerID when a Query for a Queue fails.

I don't want to use the default Case Owner by just inserting the case since I cannot depend on Case Assignment rules properly assigning the case.

share|improve this question
up vote 1 down vote accepted

I do not think they are available from the API as they are part of "settings".

If you do not (or do not want to) use assignment rules then you might want to consider using Custom Settings to hold Default Case Owner, etc values for you. You can easily refer these from within your code without hard-coding.

share|improve this answer
feel free to remove your signature. Users can see who wrote the post and the history by clicking on your badge. – Ryan Guest Jan 7 '13 at 22:52
sure thing. thanks!!! – Sai Jan 7 '13 at 22:59
That's what I was afraid of. I just hate to provide one more place to defined a default when Salesforce already makes you do it! Thanks – Salesforce Wizard Jan 8 '13 at 15:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.