I have a couple of workflows that send email, but I always seem to have to use trial and error to get the email to work. Hope I'm not the only one who doesn't get why it is so difficult to send an email when a particular state is entered.
I'm using the Sample Travel Request workflow from NetSuite. BTW - The sample bundle workflow didn't work before I modified anything, but I deleted the extra Accounting Approval workflow as we don't need that. Basically, there is a custom form/record to enter in a travel request. After an employee creates the request, the workflow moves from Entry to Pending Approval. The supervisor gets an email stating that they have a request to approve.
If the supervisor presses the Reject button, the workflow enters the Rejected state, it sends an email to the employee letting them know it was rejected (email triggered on Entry to Rejected state), changes status to Rejected, and exits the workflow.
However, if the supervisor elects to edit the form and put a reason for the rejection in the free-text field and choose the Rejected option from the approval status dropdown, it doesn't send the email. It still enters the Rejected state and changes the status to Rejected and then exits the Rejected state, but no email is sent.
I've tried changing the Send Email trigger to After Record Submit, but this doesn't work either. In fact, then the email doesn't get sent if the Reject button is used.
My workflow triggered on Create with ALL actions. I don't have update set, because I don't want the workflow to start up again if the record is updated.