Call Pre Sent script

This script can only be run on an outgoing email.

It is called after an agent initiates, replies to, or forwards an email by clicking Send but before the email is actually sent from the system to the recipient.

The blocks function as follows.

Block

Name

Description

Switch

CheckSubjectContent

Switch expression: $outgoingEmailcall.outgoingEmailData.Subject$

  • Subject is valid: use the Assign block to set the From recipient value
  • Subject is invalid: use the Terminate block to suppress the email

Assign

AssignFromRecipient

Set the From recipient to: [email protected]

Terminate

SetEmailAsInvalid

Yes: the call will be terminated and the item will be moved to the Sent Items folder with the Invalid status.

No: (Default) continue the send flow