Introduction

The following is a full list of the commands recognised by Spindle Document Distribution. 

The list is split into commands that take a value, such as ACCOUNTREF (e.g. ##ACCOUNTREF ABB001##) and those that do not because they have an inherent value, such as SPUSEREMAIL, which is the email address entered into User Settings in Spindle Document Distribution tools.


Commands that do not take a value

 

CommandComments
COMPUTERThe hostname of the machine running the process
DATEThe current date, in the format specified in Windows control panel
DATEFRIDAYThe date of the next Friday
DATEMONDAYThe date of the next Monday
DATESATURDAYThe date of the next Saturday
DATESUNDAYThe date of the next Sunday
DATETHURSDAYThe date of the next Thursday
DATETUESDAYThe date of the next Tuesday
DATEWEDNESDAYThe date of the next Wednesday
DAYLThe current day of the week, in long format, e.g Wednesday
DAYNThe current day of the month, as a number
DAYSThe current day of the week, in short format, e.g Wed
ENDDOCDeprecated. this functionality was replaced by the split command
MONTHLThe current month, in long format, e.g. November
MONTHNThe number of the current month, e.g. 11 (note: 01 from January to September)
MONTHSThe current month, in short format, e.g. Nov
PAYTHEMUsed to specify the location of a paythem button
PAYTHEMURLContains the URL for the paythem link, can be used in email body text. 
SENTTYPEContains the method of distribution (print, fax, email)
SPCOMPANYThe user's company name as set in User Settings
SPUSEREMAILThe user's email address as set in User Settings
SPUSERFAXThe user's fax number as set in User Settings
SPUSERNAMEThe user's name as set in User Settings
SPUSERTELThe user's telephone number as set in User Settings
SPUSERWEBSITEThe user's company website as set in User Settings
TIMEThe current time
USERThe logged-in windows user name
YEARLThe current year, in 4-digit format, e.g. 2021
YEARSThe current year, in 2-digit format, e.g. 21


Commands that take a value

 

Full ListSample Command
ACCOUNTREF##ACCOUNTREF ABB001##
AMOUNT##AMOUNT 165.87##
ATTACH##ATTACH Invoice 123456.pdf##
ATTACHDIR##ATTACHDIR \\Server\Share\Invoice_Archive##
BC01##BC01 12344567##
BC02as BC01
BC03as BC01
BC04as BC01
BC05as BC01
BC06as BC01
BC07as BC01
BC08as BC01
BC09as BC01
BC10as BC01
BC11as BC01
BC12as BC01
BC13as BC01
BC14as BC01
BC15as BC01
BC16as BC01
BC17as BC01
BC18as BC01
BC19as BC01
BC20as BC01
BC21as BC01
BC22as BC01
BC23as BC01
BC24as BC01
BC25as BC01
BC26as BC01
BC27as BC01
BC28as BC01
BC29as BC01
BC30as BC01
BILLADD1##BILLADD1 P/O BOX123##
BILLADD2##BILLADD2 123 Street Road##
BILLADD3##BILLADD3 Laneton##
BILLCITY##BILLCITY Roadville##
BILLCOUNTRY##BILLCOUNTRY UK##
BILLCOUNTY##BILLCOUNTY Roadchestershire##
BILLEMAIL##BILLEMAIL maureen.duffy@abbeyretail.com##
BILLFAX##BILLFAX 012 3245604##
BILLFNAME##BILLFNAME Maureen##
BILLLNAME##BILLLNAME Duffy##
BILLPOSTCODE##BILLPOSTCODE RD1 2AB##
BILLSTATE##BILLSTATE Lanetonia##
BILLTEL##BILLTEL 012 32165484##
BILLZIP##BILLZIP 12345-1234##
CFG##CFG SalesInvoices##
COMPANY##COMPANY Homestyle Kitchens##
CRMCOMPANY##CRMCOMPANY CRMCOMPANY##
CRMFNAME##CRMFNAME CRMFNAME##
CRMSNAME##CRMSNAME CRMSNAME##
CURRENCY##CURRENCY CURRENCY##
DBVAR01##DBVAR01 DBVAR01##
DBVAR02##DBVAR02 DBVAR02##
DBVAR03##DBVAR03 DBVAR03##
DBVAR04##DBVAR04 DBVAR04##
DBVAR05##DBVAR05 DBVAR05##
DBVAR06##DBVAR06 DBVAR06##
DBVAR07##DBVAR07 DBVAR07##
DBVAR08##DBVAR08 DBVAR08##
DBVAR09##DBVAR09 DBVAR09##
DBVAR10##DBVAR10 DBVAR10##
DBVAR11##DBVAR11 DBVAR11##
DBVAR12##DBVAR12 DBVAR12##
DBVAR13##DBVAR13 DBVAR13##
DBVAR14##DBVAR14 DBVAR14##
DBVAR15##DBVAR15 DBVAR15##
DBVAR16##DBVAR16 DBVAR16##
DBVAR17##DBVAR17 DBVAR17##
DBVAR18##DBVAR18 DBVAR18##
DBVAR19##DBVAR19 DBVAR19##
DBVAR20##DBVAR20 DBVAR20##
DBVAR21##DBVAR21 DBVAR21##
DBVAR22##DBVAR22 DBVAR22##
DBVAR23##DBVAR23 DBVAR23##
DBVAR24##DBVAR24 DBVAR24##
DBVAR25##DBVAR25 DBVAR25##
DBVAR26##DBVAR26 DBVAR26##
DBVAR27##DBVAR27 DBVAR27##
DBVAR28##DBVAR28 DBVAR28##
DBVAR29##DBVAR29 DBVAR29##
DBVAR30##DBVAR30 DBVAR30##
DOCUMENTNO##DOCUMENTNO DOCUMENTNO##
EMAIL##EMAIL EMAIL##
ERPCOMPANY##ERPCOMPANY ERPCOMPANY##
FAX##FAX FAX##
FORM##FORM FORM##
NAME##NAME NAME##
MVAR##MVAR ...##
OVERFORM##OVERFORM OVERFORM##
PDFPASSWORD##PDFPASSWORD PDFPASSWORD##
PREF##PREF PREF##
REFERENCENO##REFERENCENO REFERENCENO##
SDCATTACH##SDCATTACH SDCATTACH##
SDCBARCODE##SDCBARCODE SDCBARCODE##
SHIPADD1##SHIPADD1 SHIPADD1##
SHIPADD2##SHIPADD2 SHIPADD2##
SHIPCITY##SHIPCITY SHIPCITY##
SHIPCOUNTRY##SHIPCOUNTRY SHIPCOUNTRY##
SHIPEMAIL##SHIPEMAIL SHIPEMAIL##
SHIPFAX##SHIPFAX SHIPFAX##
SHIPFNAME##SHIPFNAME SHIPFNAME##
SHIPLNAME##SHIPLNAME SHIPLNAME##
SHIPSTATE##SHIPSTATE SHIPSTATE##
SHIPTEL##SHIPTEL SHIPTEL##
SHIPZIP##SHIPZIP SHIPZIP##
SMTPPASSWORD##SMTPPASSWORD SMTPPASSWORD##
TAXAMOUNT##TAXAMOUNT TAXAMOUNT##
VAR1##VAR1 VAR1##
VAR2##VAR2 VAR2##
VAR3##VAR3 VAR3##
VAR4##VAR4 VAR4##
VAR5##VAR5 VAR5##
VAR6##VAR6 VAR6##
VAR7##VAR7 VAR7##
VAR8##VAR8 VAR8##
VAR9##VAR9 VAR9##
VAR10##VAR10 VAR10##
VAR11##VAR11 VAR11##
VAR12##VAR12 VAR12##
VAR13##VAR13 VAR13##
VAR14##VAR14 VAR14##
VAR15##VAR15 VAR15##
VAR16##VAR16 VAR16##
VAR17##VAR17 VAR17##
VAR18##VAR18 VAR18##
VAR19##VAR19 VAR19##
VAR20##VAR20 VAR20##
VAR21##VAR21 VAR21##
VAR22##VAR22 VAR22##
VAR23##VAR23 VAR23##
VAR24##VAR24 VAR24##
VAR25##VAR25 VAR25##
VAR26##VAR26 VAR26##
VAR27##VAR27 VAR27##
VAR28##VAR28 VAR28##
VAR29##VAR29 VAR29##
VAR30##VAR30 VAR30##
VAR31##VAR31 VAR31##
VAR32##VAR32 VAR32##
VAR33##VAR33 VAR33##
VAR34##VAR34 VAR34##
VAR35##VAR35 VAR35##
VAR36##VAR36 VAR36##
VAR37##VAR37 VAR37##
VAR38##VAR38 VAR38##
VAR39##VAR39 VAR39##
VAR40##VAR40 VAR40##
VAR41##VAR41 VAR41##
VAR42##VAR42 VAR42##
VAR43##VAR43 VAR43##
VAR44##VAR44 VAR44##
VAR45##VAR45 VAR45##
VAR46##VAR46 VAR46##
VAR47##VAR47 VAR47##
VAR48##VAR48 VAR48##
VAR49##VAR49 VAR49##
VAR50##VAR50 VAR50##

Knowledge Base Article Details

Related ProductSpindle Document Distribution, Spindle Document Management
Ref NumberKBA-02-02-043
Document Date16-11-2021
Original AuthorVince Hodgson
Document Versionv1.0
Last updated 16-11-2021
Update Author Vince Hodgson