<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Resend_Order_Complete_Emails</id>
	<title>Resend Order Complete Emails - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Resend_Order_Complete_Emails"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Resend_Order_Complete_Emails&amp;action=history"/>
	<updated>2026-05-15T15:14:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Resend_Order_Complete_Emails&amp;diff=600&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Resend_Order_Complete_Emails&amp;diff=600&amp;oldid=prev"/>
		<updated>2023-07-14T13:00:37Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:00, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Resend_Order_Complete_Emails&amp;diff=599&amp;oldid=prev</id>
		<title>Intra&gt;Pmorey: /* Resend Order Complete Emails that failed to send */</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Resend_Order_Complete_Emails&amp;diff=599&amp;oldid=prev"/>
		<updated>2021-04-21T01:59:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Resend Order Complete Emails that failed to send&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Resend ALL Order Complete Emails ==&lt;br /&gt;
&lt;br /&gt;
Sometimes it is necessary to re-send order complete emails for a specific customer, order and/or date range.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Some email servers limit the number of emails that can be sent within a short timeframe. It may be necessary to add a SENDSPACING parameter to the notification device configuration.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Be careful! Always run the first query so you can confirm that the number of emails to be sent is correct!&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This first query will tell you the number of emails that fit the criteria you specify (customer, order, date range).&lt;br /&gt;
Notice that the &amp;quot;order_code&amp;quot; parameter is done as a LIKE within the query. You can use % to indicate all orders for the customer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT COUNT(*)&lt;br /&gt;
FROM ARTORDHD OH&lt;br /&gt;
INNER JOIN ARTORDCMPNOTIFY OC ON (OC.SESSION_NO = OH.SESSION_NO) AND (OC.TRANS_NO = OH.TRANS_NO)&lt;br /&gt;
WHERE&lt;br /&gt;
 (OH.CUST_NO = :cust_no) AND&lt;br /&gt;
 (OH.ORDER_CODE LIKE :order_code) AND&lt;br /&gt;
 (OH.DELIVERY_DATE BETWEEN :BEG_DELIVERY_DATE AND :END_DELIVERY_DATE)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This query will configure the selected order complete emails to be re-sent automatically:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DELETE FROM ARTORDCMPNOTIFY&lt;br /&gt;
WHERE ((SESSION_NO || 'K' || TRANS_NO) IN&lt;br /&gt;
(SELECT OH.SESSION_NO || 'K' || OH.TRANS_NO&lt;br /&gt;
FROM ARTORDHD OH&lt;br /&gt;
INNER JOIN ARTORDCMPNOTIFY OC ON (OC.SESSION_NO = OH.SESSION_NO) AND (OC.TRANS_NO = OH.TRANS_NO)&lt;br /&gt;
WHERE&lt;br /&gt;
 (OH.CUST_NO = :cust_no) AND&lt;br /&gt;
 (OH.ORDER_CODE LIKE :order_code) AND&lt;br /&gt;
 (OH.DELIVERY_DATE BETWEEN :BEG_DELIVERY_DATE AND :END_DELIVERY_DATE)))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final step is to issue the following request from the customer's KServer using Postman or the REST Debugger:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://&amp;lt;server_ip_address&amp;gt;:8211/rest/ktrapi1/ordcmpautonotify?LO_DATE=&amp;lt;BEG_DELIVERY_DATE&amp;gt;&amp;amp;HI_DATE=&amp;lt;END_DELIVERY_DATE&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will trigger the emails to be sent, usually within an hour.&lt;br /&gt;
&lt;br /&gt;
== Resend Order Complete Emails that failed to send ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;This procedure is supported for Keystone 3.6.30 and higher.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Sometimes it is necessary to re-send the order complete emails that failed to send for a specific customer, order and/or date range.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Some email servers limit the number of emails that can be sent within a short timeframe. It may be necessary to add a SENDSPACING parameter to the notification device configuration.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Be careful! Always run the first query so you can confirm that the number of emails to be sent is correct!&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This first query will tell you the number of emails that fit the criteria you specify (customer, order, date range).&lt;br /&gt;
Notice that the &amp;quot;order_code&amp;quot; parameter is done as a LIKE within the query. You can use % to indicate all orders for the customer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT COUNT(*)&lt;br /&gt;
FROM ARTORDHD OH&lt;br /&gt;
INNER JOIN ARTORDCMPNOTIFY OC ON (OC.SESSION_NO = OH.SESSION_NO) AND (OC.TRANS_NO = OH.TRANS_NO)&lt;br /&gt;
WHERE&lt;br /&gt;
 (OH.CUST_NO = :cust_no) AND&lt;br /&gt;
 (OH.ORDER_CODE LIKE :order_code) AND&lt;br /&gt;
 (OH.DELIVERY_DATE BETWEEN :BEG_DELIVERY_DATE AND :END_DELIVERY_DATE) AND&lt;br /&gt;
 (OH.OC_EMAIL_STATUS LIKE 'ERROR%')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This query will configure the selected order complete emails to be re-sent automatically:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DELETE FROM ARTORDCMPNOTIFY&lt;br /&gt;
WHERE ((SESSION_NO || 'K' || TRANS_NO) IN&lt;br /&gt;
(SELECT OH.SESSION_NO || 'K' || OH.TRANS_NO&lt;br /&gt;
FROM ARTORDHD OH&lt;br /&gt;
INNER JOIN ARTORDCMPNOTIFY OC ON (OC.SESSION_NO = OH.SESSION_NO) AND (OC.TRANS_NO = OH.TRANS_NO)&lt;br /&gt;
WHERE&lt;br /&gt;
 (OH.CUST_NO = :cust_no) AND&lt;br /&gt;
 (OH.ORDER_CODE LIKE :order_code) AND&lt;br /&gt;
 (OH.DELIVERY_DATE BETWEEN :BEG_DELIVERY_DATE AND :END_DELIVERY_DATE) AND&lt;br /&gt;
 (OH.OC_EMAIL_STATUS LIKE 'ERROR%')&lt;br /&gt;
))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The final step is to issue the following request from the customer's KServer using Postman or the REST Debugger:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
http://&amp;lt;server_ip_address&amp;gt;:8211/rest/ktrapi1/ordcmpautonotify?LO_DATE=&amp;lt;BEG_DELIVERY_DATE&amp;gt;&amp;amp;HI_DATE=&amp;lt;END_DELIVERY_DATE&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will trigger the emails to be sent, usually within an hour.&lt;/div&gt;</summary>
		<author><name>Intra&gt;Pmorey</name></author>
	</entry>
</feed>