You need to sign in to do that
Don't have an account?

Change Case Owner to Queue in BeforeTrigger , Insufficient privileges error
Hi all,
I have to change a case owner in a before trigger. The trigger works fine when i use an Administrator profile and the case owner is chnaged to that of a queue, but when i try changing the owner when using a user who's not an admin, i get an error saying that i don't have enough priviledges to perform the action.
I've put debug logs throughout the code to figure out the error,
The owner id actually is assigned the Queue Id, i think it's during the save operaion that i've missed something or there's an error.
can someone please point me in the right direrction and help me figurre out the error?
After lots of time spent searching here and there, i've finally been able to figure the error.
An email is triggered each time a Case or lead owner is changed. It's because there was en error while firing the email, that i had the insufficient priviledges error and there was not a change in wonership.
To counter the problem , i followed the following example
http://help.salesforce.com/apex/HTViewSolution?id=000176854&language=en_US
and it worked. :)
Alternately, i could have used WorkFlow rules to change the owner but in my case it would have meant 9 or more Workflows depending upon requirements.
All Answers
Regards,
Satish Kumar
After lots of time spent searching here and there, i've finally been able to figure the error.
An email is triggered each time a Case or lead owner is changed. It's because there was en error while firing the email, that i had the insufficient priviledges error and there was not a change in wonership.
To counter the problem , i followed the following example
http://help.salesforce.com/apex/HTViewSolution?id=000176854&language=en_US
and it worked. :)
Alternately, i could have used WorkFlow rules to change the owner but in my case it would have meant 9 or more Workflows depending upon requirements.
https://blogseva.com/ek-din-me-5000-kaise-kamaye-in-hindi/
https://blogseva.com/paisa-kamane-wala-games-in-hindi-download/
https://blogseva.com/paypal-se-paise-kaise-kamaye-in-hindi/
https://blogseva.com/pi-network-kya-hai-what-is-pi-network-in-hindi/
https://blogseva.com/student-paise-kaise-kamaye-in-hindi-2021/
https://www.governmentkischeme.com
https://www.governmentkischeme.com
https://techbiote.com/country-delight-referral-code/ (https://techbiote.com/country-delight-referral-code/" target="_blank)