SendTransactionNotification Command
This command will add a notification for a request.
SendTransactionNotification Parameters
Name | Type | Description |
---|---|---|
TransactionNumber | int | The transaction number to add the notification to. |
TemplateName | string | The name of the template that should be used to generate the notification. |
Subject (optional) | string | The subject of the notification. |
To Address (optional) | string | The to address of the notification. A value of nil can be supplied to preserve the default To address behavior which retrieves the To Address from the associated User or LenderAddress. |
From Address (optional) | string | The from address of the notification. A value of nil can be supplied to preserve the default From address behavior which uses the From Address customization keys. |
CC Address (optional) | string | The CC address of the notification. |
BCC Address (optional) | string | The BCC address of the notification. |
The order of the optional parameters must be preserved to ensure parameters are assigned properly. For example, if a To and CC address should be specified but the default From address should be used, the From address parameter should be set to an empty string.
Example
This will send an email for Transaction 1234 that uses the ExampleAddon e-mail template and sets the subject of the e-mail to "ILLiad: This is an example e-mail subject". The default From and To addresses would be used.
ExecuteCommand("SendTransactionEmail", { 1234, "ExampleAddon", "ILLiad: This is an example e-mail subject" });
This will send an email for Transaction 1234 that uses the ExampleAddon e-mail template and sets the subject of the e-mail to "ILLiad: This is an example e-mail subject" that is sent to "abc@yourlibrary.edu" and is CC'd to "xyz@yourlibrary.edu". The default From address will be used; Note the *empty string* From Address parameter.
ExecuteCommand("SendTransactionEmail", { 1234, "ExampleAddon", "ILLiad: This is an example e-mail subject", "abc@yourlibrary.edu", "", "xyz@yourlibrary.edu" } );