My Epicor is set up so that when a shipment is processed, the shipping information is automatically sent to the shipping manager. I didn’t set it up, it was set that way in the BPM. And, I recently received a request from a customer to send shipping information via email.
I would like to set this shipping information email to be sent only to that customer, not to all customers. Of course, only for that customer’s order.
Could you please tell me how to set it up? I don’t know much about BPM, but can change the Read-only mode in the screenshot. And, Additionally, the email in the screenshot below is no longer needed by our shipping manager, so I would like to change this setting to an email for a specific customer as mentioned above.
Thanks in advance!
I would assume you could simply add a Condition into the flow that checks for the target Customer’s CustNum… and if it is your target customer, then send the email.
ShipHead has CustNum, BTCustNum, and ShipToCustNum depending on which you need. (Just don’t confuse "Num"s with "ID"s).
I also thought that it might be possible to add a condition to the flow.
But, I am not good at handling this BPM. So, I asked what query should be entered into that flow.
Sorry to bother you, but could you help me?
If you want to modify the existing DataDirective, you’ll need to share more details on what’s in there. I’m assuming it starts with a condition (hidden in your image above), but not sure exactly how it’s set. Then there is a Custom Code widget and I have no idea what’s going on in there. There may be other things hidden behind the email template in your image we can’t see.
You can add a condition with a static CustNum, for example:
the ttShipHead.CustNum field of the changed row is equal to the 123456 expression.
Where 123456 is the CustNum of the target customer.
But then this directive will only work for one customer.
You could also potentially set up a Customer Group that would allow you to add multiple customer into the group who desire/require shipment alerts via email. Then modify the directive to check if the customer is in that group, and if so, send the email.
I don’t want to send you down the wrong path without seeing all the details in the existing directive.
I am creating a new directive about this. I have progressed up to here. Are there any other screens I should share so you can give me your advice?
And I misunderstood the needs of our sales team. They wanted to email all customers, not just specific customers. And they want to send mail to Ship-to customers.
If you want it to go to only certain customers, that logic goes in a condition widget. The Send Email widget is the formatting, text, and fields for the email.
If you want to send EXACTLY the same information your shipping manager receives, in the “To” field of the E-mail Template, click the Insert button and choose the field that contains the customer email address field you want to use.
However, I have no idea what is in your “Execute Custom Code” widget, so that might change how this is handled.
And you need to insert field names for each of the other fields in your template body.(cust ID, name, etc.).
I’ve implemented all the other things I wanted to implement except one.
I want to send this email only to the customer, Ship-to, and salesperson for that order. (To - Customer / CC - Ship-to / BCC - salesperson)
So how do I set these To/CC/BCC fields?
The email should only go to the customer and the people involved in that order. I would like to test it by setting it up as I think, but I am afraid that when I test it, emails will be sent to customers who are not related to the order. So, with your cooperation, I would like to set it up and test it.