Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.