I am trying to create a BPM to send an email when a new sales order is created. I’m doing it on the Erp.BO.SalesOrder.SubmitNewOrder. I am not getting an error the email is not sending. I’ve tried but pre and post processing. Any suggestions would be appreciated.
So it just does nothing?
Have you successfully sent test emails from Mail Settings Maintenance?
If so, let’s see your BPM.
It successfully sends emails when I do a BPM on Erp.BO.SalesOrder.Update.
When I do this BPM it does nothing no error and does not send an email.
I don’t think that’s where you want to put that.
Backup and tell us exactly where in the process you want this email sent.
try Pre-Process instead?
I want to send an email when someone creates a new sales order and hits save.
I did a trace on creating a new sales order and it calls the method below.
Erp.Proxy.BO.SalesOrderImpl
MasterUpdate
I tried putting the BPM on the MasterUpdate method but it did not fire there.
don’t add any condition then. Just send e-mail action on MasterUpdate.
That should definitely fire. After that we can work on your conditions.
I did just a send email on the Master Update and that sent right away. Now I want to add a condition where if a UD checkbox or UD text field is populated the email fires.
I’m doing the condition here and it does not fire the email.
As far as I understand, in Post-Processing the fields is already changed, so you only have changed value, not both. I maybe wrong though.
She’s in pre.
I am doing it in the pre processing. My thinking it will be empty since it is brand new and I only want to send an email if there is a value entered.
Do you want to know if it changed, or just if something is in there?
If something is there. I set the Erp.BO.SalesOrder.Update to send an email if it changes.
I know this is confusing.
If a new sales order is entered this UD field will be empty, if the user enters a value while creating a new sales order, I want an email sent letting certain users know that data has been entered into this field.
With an existing sales order I want an email sent letting the user know that the data in this field has been changed.
No I get it. I was pondering why it wasn’t working like you have set up here:
Yeah, I’m stumped. I am doing basically the same logic in the update to capture when it gets changed and it sends an email each time.
Try to put the values of this column with intial and updated RowMod into log message or just BPM message. That may give you an idea what is missing.
Like you are adding new record and there is no before-row. Or you are updating the wrong column, etc.
I used a ton of BAMs in E9 and those email alerts got converted into DDs and so I did all of my alerts in DDs. Tracing is good for updating values, but I feel DDs are the cleanest for sending emails.
I try to send them all as standard transactions so they do not hold the client up and if you need to detect the change you can do that in trans to trigger the standard DD sending the alert.