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

Urgent help! - Case Assignment Notifications Aren't Being Triggered
We are using Apex and VF for a Case Creation page for our customers on the community. In the code we have the following, per Salesforce's documentation:
These notifications are extremely important to our case-handling procedures here. When I create test cases directly in Salesforce and use the assignment rules the notifications work perfectly. Only cases file on the customer community prevent this.
Can anyone explain why this isn't working and help me with a fix?
Thanks!!!
Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule= true; dmo.EmailHeader.triggerAutoResponseEmail = true; dmo.EmailHeader.triggerOtherEmail = true; dmo.EmailHeader.triggerUserEmail = true; curCase.setOptions(dmo);This works PERFECTLY as far as the case assignment rules go. However, on most of the rules we have there are also automated notifications that are supposed to be sent immediately upon assignment to that queue/individual. For some reason, only with cases filed via the VF page, these notifications aren't sent. The cases are assigned properly, but no notifications.
These notifications are extremely important to our case-handling procedures here. When I create test cases directly in Salesforce and use the assignment rules the notifications work perfectly. Only cases file on the customer community prevent this.
Can anyone explain why this isn't working and help me with a fix?
Thanks!!!
So the full code I am using looks like this now:
For reference and credit I found the solution here (http://salesforce.stackexchange.com/questions/3338/case-assignment-rules-assign-to-queue-and-email-members-no-email-sent-inser/3351#3351).
And, the Salesforce documentation on this being an option can be found here (https://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_dml_database_dmloptions.htm#EmailHeaderProperty-B5377B04).
Thanks!!
All Answers
Overall, I'm not sure what the deal is with this, but it's clearly an issue. I wouldn't spend too much time troubleshooting and instead would just build the separate email alerts I mentioned previously.
Hope that helps!
I would do what you are saying with Workflow Rules and Email Alerts - one problem - my testing has proven that the "Case Owner" functionality of Email Alerts (i.e. to email something to the Case Owner) is also screwed up and doesn't appear to be working properly. In the end, the Case Owner notification is what I'm trying to duplicate.
Thanks!
So the full code I am using looks like this now:
For reference and credit I found the solution here (http://salesforce.stackexchange.com/questions/3338/case-assignment-rules-assign-to-queue-and-email-members-no-email-sent-inser/3351#3351).
And, the Salesforce documentation on this being an option can be found here (https://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_dml_database_dmloptions.htm#EmailHeaderProperty-B5377B04).
Thanks!!