Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
getMailBody
The getMailBody function returns the HTML body for the email message that is sent for a specific record. This function takes the following arguments:
Argument | Required | Description |
---|---|---|
templateName | Yes | Specifies the name of the HTML template. |
$RECORD | Yes |
Specifies the record that triggers the email notification. This record contains data that is used to construct the email message. Example: $L.file |
$RECORDOLD | Yes |
Specifies the pre-update version of the record that triggers the email notification. Example: $L.file.save |
recipient | No | This argument is reserved. The email message will always be sent to the recipient defined in the notification record. |
lang | No |
Specifies the language code of a specific language version of the HTML template. This argument is typically used if you always send this notification in a certain language. If this argument is not specified, Service Manager takes the recipient's default language when determining which language version of the HTML template to use. For each recipient, Service Manager detects:
If the recipient is a distribution group and all its members have the same default language, the common default language is used. If the members of that distribution have different default languages, the system default language is used. Example: de |
Note The Arguments field in the notification record takes only RAD expressions. Therefore, the expression must use a jscall function to call the getMailBody function in the ScriptLibrary. A typical expression resembles the following:
jscall("HTMLTemplates.getMailBody", "SM Add", $L.file, $L.file.save)