CyberStore E-Payment 2023 Documentation
Operation Agent Notification Email
In This Topic

The Operation Agent Notification Email is sent when

Default Configuration

The information below documents the default configuration for the email. To cusomize the email configuration, use the Setup > Email Manager maintenance screen in the CyberStore Management Console

Default Header

Field Value
LinkName OperationAgent-Notification
From agent@theoutdoorscompany.com
To {Auto-populated}
Subject

[NotificationCategory] CyberStore Operation Agent Notification

CC {Blank}
BCC

{Blank}

Description System alerts for Operation Agent event notifications.

Default Body

The following HTML code is used by default as the email body for this message.

Email HTML
Copy Code
<div style="padding:10px;">
    <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0"
           style="background-color:#ffffff;margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; min-width:640px;font-family: "
           Open Sans", Arial, sans-serif;">
        <tbody>
            <tr>
                <td align="center">
                    <table border="0" cellpadding="0" cellspacing="0"
                           style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0;" width="100%">
                        <tbody>
                            <tr>
                                <td align="left" height="40"
                                    style="padding-left: 15px; padding-right: 20px; padding-top: 10px; padding-bottom: 0px;"
                                    valign="top">
                                    <p>
                                        <img src="https://www.CyberStoreForSYSPRO.com/images/CyberStore-Logo.png"
                                             alt="CyberStore for SYSPRO Logo" style="margin-left: -15px" width="325" />
                                    </p>
                                </td>
                            </tr>
                            <tr>
                                <td align="left"
                                    style="vertical-align: middle; padding-left: 20px; padding-right: 20px; padding-bottom: 40px; padding-top: 0;"
                                    valign="top">
                                    <h1 style="font-family: " Open Sans", Helvetica, Arial, sans-serif;">
                                        Operation Agent
                                        Notification
                                    </h1>
                                    <h2 style="font-family: " Open Sans", Helvetica, Arial, sans-serif;">[Message]</h2>
                                    <h3 style="font-weight: normal; font-family: " Open Sans", Helvetica, Arial,
                                        sans-serif;">
                                        [Details]
                                    </h3>
                                    <p style="font-family: " Open Sans", Helvetica, Arial, sans-serif;">
                                        <span style="font-size: 10pt;">
                                            For more details, login to the <a href="[OperationCenterURL]">Operation Center</a>.
                                        </span>
                                    </p>
                                    <p style="font-family: " Open Sans", Helvetica, Arial, sans-serif;">
                                        <span style="font-size: 10pt;">
                                            This message was sent to <a href="[ToAddress]">[ToAddress]</a>
                                            by the CyberStore Operation Agent from <a href="mailto:[FromAddress]">[FromAddress]</a> on [SendDate] at
                                            [SendTime]
                                        </span>.
                                    </p>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</div>

Replacement Tags

Replacement Tags provide the means to do a text merge of values relevant to the action preceeding the email and include dynamic data in the email being sent.

Global Tags

The following are tags globally avaialble for all emails.

Tag Description
[CustomerDefaultEmail] The email address of record for the Customer
[DefaultEmail] The default address as configured for the Site
[FromAddress] The from address configured for the email
[SendDate] The date the email was sent
[SendTime] The time the email was sent
[ToAddress]  The to address configured for the email

Email Specific Tags

The following are the tags specific to the Operation Agent Notification Email.

Tag Description
[Message] The reason for the email
[Details] The detailed information of the email
[NotificationCategory] The category of the email
[OperationCenterURL]  The global operation center URL

Customer Replacement Tags

In adddition to the email specific replacement tags in the table above, the following are tags available to this email template.

Tag Description
[CustomerNumber] The Customer Number
[CustomerClass] The name of the Customer Class
[CustomerName] The Customer Name
[CustomerPhone] The phone number of record of the Customer
[CustomerFax] The fax number of record of the Customer
[CustomerContact] The contact of record of the Customer

On-File (B2B) Behavior:

When the email is being sent in the context of an On File (B2B) account and customer then all tags are available and will replace with the data from the Customer record.

B2C Behavior:

When the email is being sent in the context of an account that is not On File (B2C, anonymous or logged-in) then only the [CustomerClass] tag is available and any of the other tags will replace with blank values.

Replacement Function Tags

The following table provides the list of available Tag Functions that can be used within the all system emails.

Function tags are written within the HTML body and must be contained within opening and closeing double brackets - "[[" and "]]", for example:

[[@IFERROR(@FORMATDATE(@ADDDAYS(@LATER([PurchaseDate], [LastServiceDate]), 366), "MMMM d, yyyy"), "a date in the near future")]]

In the example above, a function is indicated by the use of double square brackets, and the @ sign is a character that indicates a function is being performed, and in this example a function can contain a function and order of operations is from the inside out). The parameters can be replacement tags by the use of square bracket syntax, though actual values could be submitted by not using brackets around the parameters.

If a function cannot evaluate a result, has invalid parameters, or a calculation error occurs, then an blank string is returned.

General Functions

Function Description
@VOID() Do nothing. (Most cases use this as a fallback/system function)

Date Functions

Function Description
@LATER(date1, date2,..., daten) Compare the two or more date/time values and determine which occurs after the other, and return that later value.
@EARLIER(date1, date2, ..., daten) Compare two or more date/time values and determine which occurs before the other, and return that earlier value.
@DATEDIFF(date1, date2) Returns the difference between two dates, including years, months, days like 1 year, 4 months, 3 days
@DATEDIFFDAYS(date1, date2) Returns the difference between two dates, in days.
@ADDDAYS(date, numDays) Using a date value, add a number of days to it and return it. A negative number subtracts that number of days from the date and returns a previous date.
@ADDMONTHS(date, numMonths) Using a date value, add a number of months to it and return it. A negative number subtracts that number of months from the date and returns a previous date.
@ADDYEARS(date, numYears) Using a date value, add a number of years to it and return it. A negative number subtracts that number of years from the date and returns a previous date.
@FORMATDATE(date, "formatString") Formats the date using the specified string. Available format strings can be found at https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

 Math Functions

Function Description
@SUM(number1, number2,... numbern) Add together two or more numeric values (integer or real) and return the calculated total
@SUBTRACT(number1, number2,... numbern) Calculate the diffierence between two or more numbers. The calculation is performed form left to right.
@MULTIPLY(number1, number2,... number n) Multiply two or more numbers to evaluate the product.
@DIVIDE(number1, number2) Calculate the quotient of two numbers by dividing the first parameter by the second.
@AVERAGE(number1, number2,... numbern) Calculate the average of two or more numbers by deriving the sum of all the numbers and divide by the total quantity of numbers.
@MOD(number1, number2) Calculate the remainder (or modulo or modulus) when dividing two numbers. The first parameter is divided by the second and the result is the remainder, or 0 if no remainder.
@FORMATNUMBER(number, "formatString") Formats a number in the specifed format. Available formats as listed at https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings 

 Logical Functions

Function Description
@IFERROR(@FUNCTION, then) Returns a value you specify if a @FUNCTION evaluates to an error; otherwise, returns the result of the FUNCTION