Reply template variables (Service)

In the email message, you can use template variables to insert customer-specific information to give the message a more personal touch. In this way, you can customize the content for each individual customer.

In the tables below you can find all template variables for SuperOffice Service and SuperOffice Marketing.

When editing reply templates and mailings, you can insert template variables by typing the variable between two square brackets ([[ ]] ). Example: [[customer.name]]. In the HTML editor, you can also select the most common variables from the Template variable menu.

Attachments (only SuperOffice Marketing)

VariableDescription
attachment.downloadUrlLink to download the attachment
attachment.nameAttachment file name
attachment.openUrlLink to open the attachment
InEmailClient1 if the mailing message is shown inside the email client, not present when the mailing message is shown online in a browser
isWebPage1 if the mailing message is shown online in a browser

License info

VariableDescription
licence.admin1 if the customer has licence for Admin, otherwise 0
licence.advancedfaq1 if the customer has licence for Advanced FAQ, otherwise 0
licence.ajax1 if the customer has licence for Ajax, otherwise 0
licence.blogic1 if the customer has licence for bLogic, otherwise 0
licence.chat1 if the customer has licence for Chat, otherwise 0
licence.custlang1 if the customer has licence for CustLang, otherwise 0
licence.customer1 if the customer has licence for Customer, otherwise 0
licence.document1 if the customer has licence for Document, otherwise 0
licence.extdb1 if the customer has licence for Extdb, otherwise 0
licence.help1 if the customer has licence for Help, otherwise 0
licence.knowledge1 if the customer has licence for Knowledge, otherwise 0
licence.logout1 if the customer has licence for Logout, otherwise 0
licence.macro1 if the customer has licence for Macro, otherwise 0
licence.retail1 if the customer has licence for Retail, otherwise 0
licence.rms1 if the customer has licence for RMS, otherwise 0
licence.sms1 if the customer has licence for SMS, otherwise 0
licence.soap1 if the customer has licence for Soap, otherwise 0
licence.soapPublic1 if the customer has licence for Soap Public, otherwise 0
licence.spm1 if the customer has licence for SPM, otherwise 0
licence.standardEdition1 if the customer has licence for Standard Edition, otherwise 0
licence.stat1 if the customer has licence for Stat, otherwise 0
licence.ticket1 if the customer has licence for Ticket, otherwise 0
VariableDescription
Link for viewing message onlineURL for showing the mailing message online in a browser, for example ‘Click here if this message looks funny’
link.subscriptionThe link to cancel your subscription
link.viewShipmentMessageThe link to view the mailing message online

Maintenance

VariableDescription
config.adminMailThe email address for the system administrator for this installation
config.cgiBinThe URL suffix for the executable program files
config.cgiUrlThe external base URL for the installation
config.cgiUrlInternalThe internal base URL for the installation
config.companyAddressThe address of the owner company
config.companyNameThe name of the owner company
config.defaultMailThe default mail-from address for this installation
config.gfxUrlThe URL suffix for the GFX-files
config.mailTagThe “Please include the ticket ID…” phrase used as first line in outbound emails
config.panicMailThe email address to send error messages to
config.smtpHostThe hostname for the outbound SMTP
config.smtpPortThe port for the outbound SMTP
config.tagThe prefix before the request number in the subject line for emails. For example, “ejTag:“
config.uniqueIdThe unique ID for this installation
config.warningThe path for the warning log files
config.wwwPathThe system path for WWW files

Variables for a selected contact

VariableDescription
customer.bestNameThe best available name for this customer
customer.cellphoneMobile phone number
customer.deleted1 If this customer is deleted
customer.emailEmail address
customer.firstnameFirst name
customer.idContact ID (hidden, unique ID)
customer.languageSelected language on contact
customer.lastnameLast name
customer.middlenameMiddle name
customer.mrmrsMr/Ms field
customer.nameFull name
customer.noteNote
customer.ourContactThe id (ejuser) of the agent which is marked as the primary support contact for this customer
customer.passwordPassword in SuperOffice Customer Centre
customer.phonePhone number
customer.salutationSalutation - the full name if available, or the email address if no name is known
customer.titleTitle
customer.usernameUser name in SuperOffice Customer Centre
makeSalutation(customer.id)Salutation

Variables for requests (only SuperOffice Service)

VariableDescription
ticket.activateWhen to activate the request, if it is in a postponed state
ticket.alertLevelAlert level
ticket.authorThe name of the person creating the request
ticket.categorySame as ticket.category.id
ticket.category.externalNameCategory, external name
ticket.category.fullnameCategory
ticket.category.idCategory ID (hidden, unique ID)
ticket.category.nameThe name of the category for the ticket
ticket.closedAtWhen the request was closed
ticket.closedAtRawThe datetime when the request was closed in YYYY-MM-DD HH
ticket.createdAtThe datetime when the request was created in the user’s default format
ticket.createdAtRawThe datetime when the request was created in YYYY-MM-DD HH
ticket.customerThe ID of the customer for the request
ticket.customerNameThe request’s contact, name
ticket.customerUrlThe URL for accessing the request for the customer
ticket.customerUrlEncThe URL for accessing the request for the customer, URL-encoded
ticket.customerUrlOldThe URL for accessing the request for the customer, not encoded. Kept for backwards compatibility.
ticket.dbiAgentIdThe ID of the DBI agent if this request was synced using DBI
ticket.dbiKeyThe external primary key if this request was synced using DBI
ticket.deadlineThe deadline of the request
ticket.idRequest ID (hidden, unique ID)
ticket.lastChangedThe datetime when the request was last changed in the user’s default format
ticket.lastChangedRawThe datetime when the request was last changed in YYYY-MM-DD HH
ticket.ownerCellphoneThe request’s owner, mobile phone number
ticket.ownerFullNameThe request’s owner, full name
ticket.ownerUsernameThe request’s owner, user name
ticket.priorityPriority
ticket.project.idProject ID
ticket.project.nameProject Name
ticket.readByCustomerThe date/time when the request was read by the customer in the user’s default format
ticket.readByCustomerRawThe date/time when the request was read by the customer in YYYY-MM-DD HH
ticket.readByOwnerThe date/time when the request was read by the owner in the user’s default format
ticket.readByOwnerRawThe date/time when the request was read by the owner in YYYY-MM-DD HH
ticket.sale.idSale ID
ticket.sale.headingSale Heading
ticket.slevelThe access level of the ticket (1 = Internal, 2 = External)
ticket.statusThe name of the status (Open, Closed, Postponed)
ticket.ticketStatusThe name of the user defined status
ticket.titleRequest title
ticket.urlThe URL for accessing the request for user agents
ticket.urlWithSessionThe URL for accessing the request for user agents containing the current user session
ticket.userUrlThe URL for accessing the request for user agents

Variables for selected company

VariableDescription
company.adrAddress
company.departmentDepartment
company.domainDomain
company.faxFax number
company.idCompany ID (hidden, unique ID)
company.nameCompany name
company.noteNote
company.ourContactSame as company.primaryContact.id
company.ourContact.cellphoneOur contact, cell phone number
company.ourContact.emailOur contact, email address
company.ourContact.nameOur contact, name
company.ourContact.phoneOur contact, phone number
company.ourSalesContactThe id (associate) of the company’s KAM
company.ourSalesContact.cellphoneOur sales contact, cell phone number
company.ourSalesContact.emailOur sales contact, email address
company.ourSalesContact.nameOur sales contact, name
company.ourSalesContact.phoneOur sales contact, phone number
company.phonePhone number
company.primaryContact.emailMain contact, email address
company.primaryContact.idThe id (ejuser) of the agent which is marked as the primary support contact for this company
ourContact.emailOur contacts email address
ourContact.nameOur contact

Variables for reply templates (user) (only SuperOffice Service)

Please note that these variables will not work for automated replies sent by the system, because such replies are not linked to a user.

VariableDescription
user.accessThe sender’s functional access as a bitmask
user.dictionaryThe users default dictionary language
user.emailEmail address
user.firstnameFirst name
user.idThe primary key of the sender in the ejuser table
user.languageSender’s selected language
user.lastnameLast name
user.loginnameLogin name
user.middlenameMiddle name
user.nameThe full name of the user agent
user.signatureSender’s signature from Settings
user.statusThe sender’s status (1 = normal, 2 = not available, 3 = deleted)
user.usernameThe sender’s username, not necessarily same as loginname

Conditional values

[[IF

=“1”]]

Condition is one

[[ELSEIF

=“2”]]

Condition is two

[[ELSE]]

Condition is something else

[[ENDIF]]

Choose from values:

[[DECODE

,“value1”,“return1”,“value2”,“return2”,“default”]]

Set variable:

[[SET

=“value”]]

Increment variable:

[[INC

]]

Decrement variable:

[[DEC

]]

Format date:

[[FORMAT-DATE:“date”,“YY4 MM2 DD2 HH24:MI2

”]]

Format time:

[[SEC-TO-TIME:“seconds”,“h:m

”]]