Skip to main content

Messages Settings

In the Messages Settings window you set the time at which the scheduled job for date-based messages runs every day: maturity dates, expiry dates and birthdays. You also open the settings of the sending accounts from it. At the end of this page the message text editor is explained. It is where you write the text of messages of every type.

What automatic messages are and how they work is in Understanding automatic messages. The steps to set them up are in Set up messaging accounts.

Opening the window​

  • From the ribbon: Systems > Messages > Messages Settings.
  • The Messages group appears in the ribbon when your licence includes the messaging system.
  • You need the permission Messages Settings on the Operations page of Users Management. It is one check box.

Schedule settings​

The group title is "Schedule Settings ( Maturity Date - Expiry Date - Birthday message for client )". It sets the time of the daily job that checks these dates and sends their messages.

FieldDescriptionRequiredValues and rules
HThe hour at which the daily job starts.YesA number from 1 to 12. The program shows 12 when you open the window in a file where the job was not created. Create refuses a number above 12. An empty field is read as 0.
MThe minute.YesA number from 0 to 59. The program shows 00 when no value is saved.
The AM and PM listMorning or afternoon.YesAM is the default in a new file. The saved value is shown when there is one. 12 with AM means midnight, and 12 with PM means noon.
TimingThe caption of the hour, minute and AM or PM boxes.NoIt holds no value.
StatusThe state of the daily job.NoRead only. Values: Running, Suspended and Creation not completed. The program reads it from a setting saved in the file. It does not ask SQL Server Agent about the job itself. It becomes Running after a successful creation, and stays Creation not completed before it.

A note appears under the group: "Note: To execute schedule, ensure that SQL Server Agent is running." The daily job does not run if that tool is stopped on the server.

The program opens the window with the time saved in the file settings, if there is one. The same time is used by special occasions of the type "Scheduled Info" (see Special Occasions Messages).

What the Create button does​

Create prepares a scheduled job in SQL Server Agent named "Date Notification" for this file, and sets it to run every day at the time you typed. If the job already exists, the program changes its time. So press Create again to change the time.

Each time it runs, the job does these checks in this order:

  1. Customer birthdays, in special occasions.
  2. Expiry of materials, in materials control.
  3. Maturity dates of invoices.
  4. Maturity dates of commercial papers.
  5. The due payment date in orders.
  6. Congratulation dates, in special occasions.

The job is valid from the first date of the file's period to its last date. When the time is saved, the program writes the hour (in 24-hour form) and the minute in the file settings.

You can add a scheduled message only when the status is Running. This applies to messages in special occasions and to the reminder before the maturity date in commercial papers. Otherwise a message asks you to check the settings (see Messages).

Buttons​

ButtonWhat it does
CreateChecks the hour and the minute. Then it creates the daily job or changes its time, saves the time in the file settings, and refreshes Status. A result message appears after it.
Link SettingsOpens Program Options on the Link page, where you set the e-mail, text message and WhatsApp accounts. The page is explained in Set up e-mail, WhatsApp and SMS sharing and in Program options: defaults and link.
CloseCloses the window. The window saves nothing except at Create.

Messages​

MessageWhy it appearsWhat to do
Select hour between 1 and 12You pressed Create and the hour typed is above 12.Type an hour from 1 to 12 and choose AM or PM.
Select Minutes between 0 and 59You pressed Create and the minute is 60 or more.Type a minute from 0 to 59.
Creation successfully completedThe time was saved and the creation request was sent to the server.Check Status.
Creation process failedThe hour and minute could not be saved in the file settings.Try again. Tell the database administrator if it repeats.
Please check schedule settings from " Messages Settings "You tried to add a message that needs the daily job, and it was not created. This message appears in Messages Management, not in this window.Create the job from here.

Message text editor​

This editor appears in every message window, e-mail, text message or WhatsApp, under the heading Message Text. It has no window of its own. Beside it is the Insertion Fields tree.

Insertion fields​

The tree lists fields that the program replaces with the data of the operation when the message is sent. The fields differ by message type. Each type has its own list, such as client data, commercial paper data and account movement data. The lists of the types are given in Messages Management.

  • The folders in the tree are group titles only. A folder is not inserted in the text.
  • Double-click a field and the program adds it at the end of the text, between square brackets and in bold, such as [Client Name]. Then it puts the cursor after it.
  • You can also type the field yourself in the same form, or copy a field that is already there. The brackets are part of the name.
  • When you save, the program replaces each field name with its internal code and saves the list of the fields used. When you open the saved message, you see the names as you wrote them.
  • A field that does not appear in the text is not used.

The right-click menu​

Right-click inside the editor and this menu appears:

ItemWhat it does
Undo (Alt + Backspace)Undoes the last change. Disabled when there is nothing to undo.
Cut (Shift + Del)Cuts the selected text. Disabled when nothing is selected.
Copy (Ctrl + Ins)Copies the selected text. Disabled when nothing is selected.
Paste (Shift + Ins)Pastes the clipboard. Always enabled in this editor.
ClearEmpties the whole editor. Disabled when it is empty.

The Delete item that other editors have in this menu is not shown.

The form of the text for each channel​

  • E-mail: The text is sent as a web page. If the paragraph is aligned to the right, the direction is right to left. Otherwise it is left to right. Line breaks are kept. The subject has its own box in the message window.
  • Text message and WhatsApp: Plain text with no formatting.

This page applies to alameen ERP 10, version 10.1.79.764.