<?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=Keystone_Auto-Task</id>
	<title>Keystone Auto-Task - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Keystone_Auto-Task"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Auto-Task&amp;action=history"/>
	<updated>2026-05-15T16:56:46Z</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=Keystone_Auto-Task&amp;diff=334&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Auto-Task&amp;diff=334&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:51Z</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;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-333:rev-334 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Keystone_Auto-Task&amp;diff=333&amp;oldid=prev</id>
		<title>Pmorey: /* Sample Auto-Task Control Files */</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Keystone_Auto-Task&amp;diff=333&amp;oldid=prev"/>
		<updated>2019-01-16T15:05:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Sample Auto-Task Control Files&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;==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
Keystone Auto-Task requires Keystone 3.0 or higher.&lt;br /&gt;
&lt;br /&gt;
==Configure Windows User Account==&lt;br /&gt;
&lt;br /&gt;
For security purposes, a separate Windows user account must be created for processing Keystone Auto-Tasks. This special user account must be properly configured to support the Windows Task Scheduler.&lt;br /&gt;
&lt;br /&gt;
On the server or PC where the auto-task should run:&lt;br /&gt;
&lt;br /&gt;
# Create a new Windows user account for user name &amp;quot;ksautotask&amp;quot;. Assign a strong password to this account. This account should be a member of the &amp;quot;Users&amp;quot; group and ONLY this group.&lt;br /&gt;
# Open Control Panel-&amp;gt;Administrative Tools-&amp;gt;Local Security Policy.&lt;br /&gt;
# Under Security Settings-&amp;gt;Local Policies-&amp;gt;User Rights Assignment:&lt;br /&gt;
#* double-click &amp;quot;Log on as a batch job&amp;quot;&lt;br /&gt;
#* on the Local Security Settings tab, click &amp;quot;Add User or Group&amp;quot;&lt;br /&gt;
#* type &amp;quot;ksautotask&amp;quot; and click OK&lt;br /&gt;
#* click OK&lt;br /&gt;
#* double-click &amp;quot;Log on as a service&amp;quot;&lt;br /&gt;
#* on the Local Security Settings tab, click &amp;quot;Add User or Group&amp;quot;&lt;br /&gt;
#* type &amp;quot;ksautotask&amp;quot; and click OK&lt;br /&gt;
#* click OK&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
==Configure Keystone Task==&lt;br /&gt;
&lt;br /&gt;
On the server or PC where the auto-task should run, create an auto-task control file for each auto-task. This can be created using Notepad and should have a '.ini' extension. The suggested folder to place these files is D:\CCGH\AUTOTASK (or C: if there is only one drive configured.)&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for &amp;quot;Prepare Remote Ticketing Data.&amp;quot; This task will create the file for Company 002, Location 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=002&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[LOCATIONS]&lt;br /&gt;
1=Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the &amp;quot;CCTASK&amp;quot; user id does not have to be created as a user in Keystone. This is purely for informational/logging purposes.&lt;br /&gt;
&lt;br /&gt;
==Configure Windows Task Scheduler==&lt;br /&gt;
&lt;br /&gt;
The final step is to configure the Keystone Auto-Task to run at a specific time. This is done using the Windows Task Scheduler.&lt;br /&gt;
&lt;br /&gt;
On the server or PC where the auto-task should run:&lt;br /&gt;
&lt;br /&gt;
# Open Control Panel-&amp;gt;Administrative Tools-&amp;gt;Task Scheduler.&lt;br /&gt;
# In the &amp;quot;Actions&amp;quot; box click &amp;quot;Create Task&amp;quot;.&lt;br /&gt;
# On the General tab:&lt;br /&gt;
#* enter a name for the task (i.e. &amp;quot;Keystone Prepare Remote Ticketing Data&amp;quot;)&lt;br /&gt;
#* under Security options, click &amp;quot;Change User or Group&amp;quot;&lt;br /&gt;
#* type &amp;quot;ksautotask&amp;quot; and click OK&lt;br /&gt;
#* click &amp;quot;Run whether user is logged on or not&amp;quot;&lt;br /&gt;
# On the Triggers Tab:&lt;br /&gt;
#* click NEW&lt;br /&gt;
#* configure the schedule appropriately for the task&lt;br /&gt;
#* check the &amp;quot;Stop task if it runs longer than&amp;quot; box and select &amp;quot;1 hour&amp;quot;&lt;br /&gt;
#* click OK&lt;br /&gt;
# On the Actions Tab:&lt;br /&gt;
#* click NEW&lt;br /&gt;
#* for Program/script enter the full path name of the Keystone option to run (including quotes): (i.e. &amp;quot;C:\Program Files (x86)\GivenHansco\Keystone\BIN\arutrmt.exe&amp;quot;)&lt;br /&gt;
#* for Add arguments enter /t followed by the name of the auto-task control file (i.e. /t d:\ccgh\autotask\arutrmt.ini)&lt;br /&gt;
#* click OK&lt;br /&gt;
# Click OK.&lt;br /&gt;
# You will be asked to enter the password for user &amp;quot;ksautotask&amp;quot;. Do so and click OK.&lt;br /&gt;
&lt;br /&gt;
==Sample Auto-Task Control Files==&lt;br /&gt;
&lt;br /&gt;
===Prepare Remote Ticketing Data===&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for &amp;quot;Prepare Remote Ticketing Data.&amp;quot; This task will create the file for Company 001, Location 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=001&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[LOCATIONS]&lt;br /&gt;
; list of locations to be processed in the form LOC_ID=Y or N&lt;br /&gt;
1=Y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Query Export Report===&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for a Query Export report. This task will run a pre-defined Query Export report and generate a PDF output file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=001&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[QUERY]&lt;br /&gt;
; SESSION_NO and TRANS_NO of query in CCTQUERY table&lt;br /&gt;
SESSION_NO=6989&lt;br /&gt;
TRANS_NO=2&lt;br /&gt;
; ACTION can be 'REPORT' or 'EXPORT'&lt;br /&gt;
ACTION=REPORT&lt;br /&gt;
[REPORT]&lt;br /&gt;
DESTINATION=PDF&lt;br /&gt;
PDFFILENAME=d:\xfr\qxreport.pdf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: As of Keystone 3.0.3 only queries without parameters are supported for auto-task.&lt;br /&gt;
&lt;br /&gt;
===Query Export Export===&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for a Query Export export. This task will run a pre-defined Query Export export and generate the export file specified in the query setup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=001&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[QUERY]&lt;br /&gt;
; SESSION_NO and TRANS_NO of query in CCTQUERY table&lt;br /&gt;
SESSION_NO=6989&lt;br /&gt;
TRANS_NO=2&lt;br /&gt;
; ACTION can be 'REPORT' or 'EXPORT'&lt;br /&gt;
ACTION=EXPORT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: As of Keystone 3.0.3 only queries without parameters are supported for auto-task.&lt;br /&gt;
&lt;br /&gt;
===A/R Customer List===&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for the A/R Customer List. This task will run the report and generate a PDF output file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=001&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[REPORT]&lt;br /&gt;
DESTINATION=PDF&lt;br /&gt;
; Zip Code, Customer Id sequence&lt;br /&gt;
SEQUENCE=2&lt;br /&gt;
PDFFILENAME=d:\xfr\custlist.pdf&lt;br /&gt;
[SELECTION]&lt;br /&gt;
; only customers for Salesperson 'BA'&lt;br /&gt;
SALESPERSON=BA&lt;br /&gt;
[OPTIONS]&lt;br /&gt;
REPORT_TYPE=SUMMARY&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dispatch Order List===&lt;br /&gt;
&lt;br /&gt;
Here is an example of an auto-task for the Dispatch Order List to show plant 01 orders from today and beyond. This task will run the report and generate a PDF output file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;NOTE: The ability to specify [CURDATE] and [MAXDATE] in the SELECTION area requires Keystone 3.1.99.17 or higher.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[TASK]&lt;br /&gt;
COMPANYID=001&lt;br /&gt;
USERID=CCTASK&lt;br /&gt;
[REPORT]&lt;br /&gt;
DESTINATION=PDF&lt;br /&gt;
; Plant, Date, Customer Id, Order Id sequence&lt;br /&gt;
SEQUENCE=0&lt;br /&gt;
PDFFILENAME=d:\xfr\ordlist.pdf&lt;br /&gt;
[SELECTION]&lt;br /&gt;
; only orders for today and beyond&lt;br /&gt;
DELIVERY_DATE=[CURDATE],[MAXDATE]&lt;br /&gt;
PLANT_NO=01&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pmorey</name></author>
	</entry>
</feed>