Hi,
i try to create a BPM to trigger email to user whenever a new SO is created. i am able to trigger the email whenever SO is created from order entry screen directly. However, the email is not trigger when the SO is converted from quote. Can anybody guide me how to create BPM to trigger email whenever the SO is created from quote?
Below is my BPM that successfully trigger email when SO is directly created from order entry menu.
Is there any trace data that happens that is specific to a Quote converting to a Sales Order? I have seen in previous experience that RowMod = âAâ when an attachment is added and itâs equal to âDâ when an attachment is removed. I would imagine there is something special when you decide to convert from a Quote to a Sales Order.
I would set up a trace and capture everything from when you convert it over and see what you can hook off of.
Hope this helps.
You are on-prem only in Classic view?
These are the steps I have from an Epicor employee on how to set up trace on the desktop client. I imagine this would work for you as well. I am on SAAS, but I imagine the desktop client is the same. It is kind of annoying because it will open the trace screen every time you click into a new screen, but at least you can see what methods are being run and what data is being passed into those Methods to look for a condition to send an email
Right-click the desktop icon and select Properties.
Review the Target field to see the.sysconfig file you use to launch the desktop client.
Then review the Start In field to see the directory path to your local Config folder.
Go to your local Config folder. For example: C:\Epicor\ERP11\LocalClients<Kinetic Version>\config
Use a text editor to open the .sysconfig file.
Go to the section.
Add this setting:
Save the .sysconfig file.
The next time you launch the desktop client, the Developer Tools window launches as well.
EDIT: Sorry, didnât expect it to save as a code block. Just copied and pasted from email
Hi Mackenziem,
yes, if using BO.createOrderFromQuote, i presumed post processing should be use, but i have no idea what condition should test in BPM before i can trigger send email in BPM.
Can we think of any reason that a Quote would be converted to a Sales Order that didnât result in a Sales Order? I feel that method executing in of itself is good enough of a trigger, no?
You could try a post-processing, but I would do another trace (if you have been able to) to see what information is available before and after. I imagine most of the details that you would need are in the pre-processing, so I would do a pre-processing method on the CreateOrderFromQuote method and pass the relevant information.
i agreed. once user click âcreate Sales OrderâŚâ in quote action menu. all should be converted to SO. i also require to show the new SO number in my email template. that is why i presumed only after post processing i can get this data.
look like it is possible to setup a BPM on send Email using pre processing on BO.CreateOrderFromQuote. Can you show me how to setup this BPM?
your help will be much appreciated.
You can get the OrderNum in PostProcessing. In the Email template, you can call Parameters > OrderNum. This is has to be run as a Post Processing directive because OrderNum doesnât exist until after the Create method has finished.
There are two ways to create an order from a quote. One is from inside Quote Entry to âpushâ a quote to an order. Second is from inside order entry and to âPullâ a quote into an order. Which method do you use?
Youâll want to create BPMs on whichever you use --or both-- methods depending on how your company creates orders.
the email template i know how to draft it, but i do not know what to test in the BPM before triggering the send email.
meaning:
Start ---- ? ----- send email (i believe there must be a condition to test before the action send email)
Hi Randy,
thanks for replying, our company using âpushâ method. which is create a Sales order from quote entry screen. i am struggling to find out what is the condition to use before send email in the BPM.
method: BO.CreateOrderFromQuote and post-processing.
Why couldnât it run with no condition, the condition is CreateOrderFromQuote has run. Click create new post-processing directive on that method and just drag the Send Email widget in there and structure your template?
I asked what you need to email because on post processing youâre pretty restricted on the data you have after it runs, but you can leverage more widgets to go look up that data for the email.
Hi Mackenziem,
i create the BPM based on your advice without using any condition to trigger the email, but it did not trigger email when i run the test from quote entry. Attached is my BPM.