We are using trying to switch to Lightning on Service Console. We have 2 different Case Actions
1. To update the record (This includes the fields that the agents needs to fill before closing the case)
2. Send Email. (This is supposed to send the email and update the case status as Closed).
The issue is that in order to mark the case as closed, certain fields needs to be populated. So if an agent goes to the send email action and sends an email, the case status should close.
But if one of the required fields is not populated, the case status does not get updated nor do we get any error message on the page. If I check it in the debug logs, it shows that the validation rule is preventing the case.
How can I show validation error message or any other message on the Send Email action.
See the below screen shot. The mandatory fields are in the details section, and we are sending the email from Feed section.
Thanks in advance.
#Lightning Console #Lightning Service Console #Service Lightning Console #Lightning Experience Service Console #Lightning Console For Service #Service Cloud
Vuk Stajic (MVRK Inc.) Forum Ambassador
I do not believe a Validation Rule can run off of button clicks.
Here is some helpful reading: https://salesforce.stackexchange.com/questions/223679/validation-rule-on-a-custom-button-to-fire-if-not-all-fields-are-filled-by-the-u
One slightly unorthodox thought I had was that you could potentially use record types on cases - have cases be record type A when they are not ready for button to be used and dont have the button on that layout assigned to Record Type A.
Then, when the case meets all criteria, a field update can change the Record Type to Record Type B. On Record Type B you can have the button visible on it's assigned layout.
This is probably not an ideal solution though.