Automations · Part 2

One Command at a Time

Not every job needs a saved automation. Enter Automation Command runs any one command, and the Common Custom Commands window puts the fixes people need most often, for codes, barcodes and retailers' files, one click away.

Enter Automation Command

  1. Choose Automation › Enter Automation Command.
  2. Type a word or two in Filter to shorten the list. Every word you type must be in the command's name, in any order, and can be part of a longer word: class move leaves the three commands that move a classification, and cop finds the two Copy commands and Set Substitution Scope.
  3. Choose the command from Command. From Spanner 2.5.1.2, what it does is shown under the boxes.
  4. Fill in Parameter 1 and Parameter 2. A box the command doesn't use is hidden. Hold the mouse over the ? beside a box to see what goes in it.
  5. Press Enter, or click the green tick, to run it. Escape or the red cross closes the window without running anything.

The command runs on the selected document, and on the selected planogram or object where it works on one. Spanner doesn't report what it did, so look at the result: the products in a report, the planogram, the Document Editor. A command that names something the document hasn't got does nothing.

Each command is one step under Edit › Undo. It is a good way to try a command before you put it in an automation: the name, the values and the result will be the same.

For example, to merge the products of a library harvested from several retailers' planograms into one record per barcode, choose Merge Many Products, type UPC in Parameter 1 and Pad14, ID in Parameter 2. Building a Product Library explains when to.
The Automation menu, with Enter Automation Command highlighted, between Delete Animation and Common Custom Commands
Automation › Enter Automation Command runs a command once.
The Enter Automation Command window. Filter holds cop, and the Command list is open with three commands: Copy Product Strings, Copy Table Column and Set Substitution Scope
The filter cop leaves three commands, as Scope holds it too.
The Enter Automation Command window with Copy Product Strings chosen, UPC in Parameter 1 and UPCCOPY in Parameter 2. Below the boxes, the command's description: it copies the string values of the source property to the target property, and with Matches as the target adds each product's value to its other codes
Copy Product Strings, set to copy each product's UPC into a classification called UPCCOPY. What the command does is shown under the boxes.

Common Custom Commands

With a document open, choose Automation › Common Custom Commands. The window holds the jobs people most often need on a document's products, each as a button. A button runs the automation command named in the tables below, on the selected document, and each is one undo step.

The window stays open until you close it with the red cross, so you can run several in turn. Where a button needs a classification, choose it from the list beside the button first.

The Common Commands window. At the top, Add Classification with an empty salmon box, Delete Classification and Rename Classification. Then Copy UPC to ID, Copy ID to UPC, and seven copy rows each with a classification list and a Run button. Then Remove Empty Classifications, Remove First Character from UPC, Add Check Digit to UPC, Add Check Digit to UPC of 7/12 Digits, 13 Digit UPC Format and 8/13 Digit UPC Format. Then Scale Everything by 2.54 with Scale Up and Scale Down. At the foot, a grey block headed psa Conversion with Add Default Classifications, Add/Copy to: Retailer ID, Add Default Measures, Add Default Calculated Measures, Add Default Movement, Set Default Time 52 12, and Do All
The Common Commands window. Each button runs one automation command on the selected document.

Classifications

RowWhat it doesCommand
Add ClassificationType the new heading and click Run. The box stays salmon pink, and Run stays hidden, until you have typed a name the document hasn't got. Rename Classification's box works the same way.Add Classification
Delete ClassificationChoose the classification and click Run. Its values go with it.Delete Classification
Rename ClassificationChoose it, type the new name after to, and click Run.Rename Classification
Remove Empty ClassificationsDeletes every classification that no product has a value in.Remove Empty Classifications

To move classifications, or to change several at once, use the Document Editor.

Copying codes

These copy each product's value from one field to another, for every product in the document: Copy UPC to ID, Copy ID to UPC, and rows that copy ID, UPC or Name to a classification you choose, a classification back to ID, UPC or Name, and one classification to another. They all run Copy Product Strings.

Use them to keep a retailer's code before you change it (copy ID to a Retailer ID classification), to make the barcode the product's key (copy UPC to ID), or to move coding from one heading to another.

Copying to ID changes how Spanner knows each product. Product libraries and sales data imports usually match products on ID. Keep the old IDs first, in a classification or in each product's other codes (Updating a Product Library covers this).

Barcodes

ButtonWhat it does to each product's UPCCommand
Remove First Character from UPCTakes off the first character, for files that put a letter or an extra digit in front.Remove Characters, UPC, Start 1
Add Check Digit to UPCWorks out the check digit and adds it to the end of every UPC.Check Digit
Add Check Digit to UPC of 7/12 DigitsThe same, but only for UPCs of 7 or 12 digits: the length an 8 or 13 digit barcode has when its check digit was left off. Usually the safer of the two.Check Digit, UPC, 7 12
13 Digit UPC FormatWrites every UPC as 13 digits.UPC Length, 13
8/13 Digit UPC FormatKeeps 8 digit barcodes at 8 and writes the rest as 13 digits.UPC Length

Look at a few UPCs before and after, in the Product Coding report. To mend a classification that holds barcodes, rather than the UPC itself, use the commands with that classification's name in Part 3.

Scaling

Scale Everything by multiplies every measurement in the document, products and fixtures alike, by the number in the box. Scale Up multiplies by it and Scale Down divides by it. The buttons show only while the box holds a number above 0. They run Scale Document.

The box starts at 2.54, the number of centimetres in an inch: a file whose sizes were read as centimetres when they were inches is put right with Scale Up. Check one product's size and one shelf's width afterwards.

PSA conversion

A retailer's planogram file arrives with the retailer's set-up, not yours. The grey psa Conversion block at the foot of the window brings it into line, one step per button:

ButtonWhat it adds
Add Default ClassificationsYour default classifications that the document lacks.
Add/Copy to: Retailer IDA Retailer ID classification holding each product's ID as the retailer gave it. Shown only while the document has no Retailer ID.
Add Default MeasuresYour default measures.
Add Default Calculated MeasuresYour default calculated measures, updating those with the same code.
Add Default MovementYour default movement rows.
Set Default TimeYour two default time periods, in weeks; the button shows them, for example 52 12.
Do AllAll of the above in turn. While the document has no Retailer ID, it also adds Retailer UPC with each product's UPC.

Your defaults are in Tools › Settings. Opening a PSA with the command Open Document and Convert in Parameter 2 does the same as Do All as it opens the file.

To do this with every PSA, and to add barcode fixes and a library import, save the steps as an automation: the third example in Part 1 is one. What a PSA brings, and the work that follows, is in Using Retailers' Planograms.

Retailer files that need the same fixes every time?

We can work out the commands with you and save them as one automation, so each new file is ready in a click.

Email us Book a Demo