DMS Help
DMS Help

Auto Import Inventory

 

 

The Auto Import Inventory command enables you to import inventory and inventory updates into DMS.  This command is the same as selecting the Interface | Text Import | Import Inventory via Text File manually from the DMS menu. 

 

In order to import inventory automatically, the user name provided for the login must have access to both the “Enable Auto User Login” and the “Inventory”. 

The parameter for the automatic import inventory is:

AutoImportInventory=command file       

 

For example, to login to the database WorkData with a user name of Jan Smith to import jobs using the command file C:\Program Files\Dynafact\Inventory Updates Cmd.TXT the following would be used: 

DMSEnt “AutoUserName=Jan Smith” DatabaseName=WorkData “AutoImportInventory=C:\Program Files\Dynafact\Inventory Updates Cmd.TXT"       

 

The “command file” is an existing text file that holds the import jobs command information.  The command file parameters must never be surrounded in quotation marks even if the parameter has a space in it.  The following commands are given in the schedule command file: 

1.ImportFilename=(Filename that holds the data to import into DMS.  This parameter is required)

2.ReportStatusFilename=(Filename to write the import status and any errors to.  If not given, the default filename of import folder\ImportStatus.TXT will be used.

 

The following example Auto Import Inventory command file will import jobs into DMS from C:\Program Files\Dynafact\DMS\Import\Import.Txt, write the status and any errors to the C:\Program Files\Dynafact\DMS\Import \SomeResults.Txt, and add resources if required.  All other parameters take the default values:

ImportFilename=C:\Program Files\Dynafact\DMS\Import\Import.Txt

ReportStatusFilename=C:\Program Files\Dynafact\DMS\Import \SomeResults.Txt
 

Note that if you want to run an import more than once, you must specify an entirely new command line.  For example, if you want to run three import commands the following would be used:

"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=DMS" " DataBaseName=DMSCopy" "AutoImportInventory=C:\Program Files\Dynafact\DMS\ImportCmd1.TXT" "AutoLogOut"

"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=DMS" " DataBaseName=DMSCopy" "AutoImportInventory=C:\Program Files\Dynafact\DMS\ImportCmd2.TXT" "AutoLogOut"

"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=DMS" " DataBaseName=DMSCopy" "AutoImportInventory=C:\Program Files\Dynafact\DMS\ImportCmd3.TXT" "AutoLogOut"

 

See also: Automatic Execution Commands