Frequently Asked Question

How can I import a batch from the command line?
Last Updated 4 years ago

External systems can add product batches for ticket printing by calling Phototicket with specific command line parameters. If Phototicket is already running when called with these command line parameters, it will be made the top most window and the imported batch will be selected ready for printing. If Phototicket isn't already running when called with these command line paramters, it will start up as normal with the imported batch selected ready for printing.

The command line parameters for importing Phototicket's standard CSV import file is as follows:

path\to\Phototicket.exe --import-batch --batch-group-name="Produce" --batch-filename="path\to\batch_file.csv" --batch-name="2016-12-12 Sensible Name" --delete-batch-file

Where:

--import-batch (required) instructs Phototicket to import a batch.

--batch-group-name (required) tells Phototicket which product group to add the batch to. This product group must be present in Phototicket. For example, the command line above would require that the group name "Produce" above must be present (but not necessarily selected) in Phototicket, as shown below.

image



--batch-filename (required) is the filename of the import file.

--batch-name (required) is the batch name shown in the Phototicket Batch combo box once the import is complete. If the name already exists, a number will be appended to ensure that it is unique.

--delete-batch-file (optional) tells Phototicket to delete the batch file once it has been successfully imported.

The format for the standard import CSV file can be found here.

To see an example of an import file, you could create a batch, add some products to it, edit the products populating all of the fields, then export the batch. The file created is suitable for importing.

image



image



image



image



Files that are exported by systems that aren't in Phototicket's standard import format may still be able to be imported into Phototicket with the addition of a Phototicket Product Filter. If you will like to have data imported into Phototicket in a non-standard format, email support@phototicket.com with an example and description of the data file.

Please Wait!

Please wait... it will take a second!