I have set up the PDF_REPORT_CREATED event action:
RMB in the Customer Order header and selected E-mail Order Confirmation
With DEBUG on the following was passed:
Customer_Order_Flow_API.Email_Order_Report__ was executed with valid information and valid email address.
However, no email was received.
If I print the customer order confirmation and instead of printing tick the Email checkbox and enter the same email address the email is received.
What am I missing?
Best answer by ChanakaAmarasekara
Hi,
Maybe the action is not triggered. It’s only triggered with the conditions are met. So first try without the conditions (try removing the PARAM2 and report title check). If that works then it’s the conditions. Try printing the same values in the mail body and check if the values you are writer in the condition are correct.
Also, give a valid email to the from user instead of mycompany.com.
Maybe the message to send the email is errored out. Check the OUT1 and NOTIFICATION queue in Solution Manager for more details.
As per IFS documentation for Customer Order screen are all prerequisites met for Email Order Confirmation to work?
Prerequisites
This activity has the following prerequisites.
IFS/Print Server and IFS/Connect have to be installed.
Print Server Archiving has to be enabled.
The PDF_REPORT_CREATED event must be defined and enabled.
On the Customer/Address/General Address Info tab, in the Comm. Method area,the communication method should be set to E-mail and the receiver's e-mail address must be specified in the Value fieldfor therespective customer name. The same customer name should be given in the Customer Contact field of the Customer/Address/Order Address Info tab.
A value in the Reference field must have been entered in the Customer Order header. If a valid customer contact exists in the Customer/Address/Order Address Info tab, then that value will automatically be set as the reference value, and be used as the e-mail address of the receiver.
The customer order should be in Planned, Released, Reserved, Picked, Partially Delivered, Delivered or Invoiced/Closed status.
The Order Confirmation check box in the Customer/Order/Misc Customer Info tab should be selected.
System Effects
The customer order confirmation is e-mailed to the specified customer using IFS/Connect and the rules specified for the event PDF_REPORT_CREATED.
Maybe the action is not triggered. It’s only triggered with the conditions are met. So first try without the conditions (try removing the PARAM2 and report title check). If that works then it’s the conditions. Try printing the same values in the mail body and check if the values you are writer in the condition are correct.
Also, give a valid email to the from user instead of mycompany.com.
Maybe the message to send the email is errored out. Check the OUT1 and NOTIFICATION queue in Solution Manager for more details.
@Srikanth@ChanakaAmarasekara Thank you both for your replies. I found 2 issues:
Issue 1, the PARAM2 wasn’t correct it should have been defined with REPORT_ID or just the REPORT_TITLE.
Issue 2, we had set the From User as accounts@mycompany.com (changed company). Whereas it should have been set as a valid user. i.e. the user sending the email.
I do have 1 question though, the user has their own works email address but we want the email to be sent from accounts@mycompany.com. Would we have to create a user with this email address to be able to do this?
The from user should be a valid user or the email should be a valid email in the same domain. If you are using an email address outside of your domain (e.g. gmail.com) then make sure the addresses are not filtered from the mail server.
Issue 2, we had set the From User as accounts@mycompany.com (changed company). Whereas it should have been set as a valid user. i.e. the user sending the email.
I do have 1 question though, the user has their own works email address but we want the email to be sent from accounts@mycompany.com. Would we have to create a user with this email address to be able to do this?
Just create a dummy user, set the email address and then do not make them Active. (Or you will be wasting a license)
Full E-mail: IFS Approval Routing<Approval.Routing@mycompany.co.uk>
This way, the email address doesn’t actually have to exist (But better if it does as replies can then be used)
Has the reference field on the customer order header been populated with the person id from the contact and does the contact have a valid email address?
Has the reference field on the customer order header been populated with the person id from the contact and does the contact have a valid email address?
John
I am using this for Payment Receipt. When a Payment receipt is printed (PDF) this event is called, The customer Payment Tab has customer details (comm method: email id) but the parameter shows as null when triggered
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.