We would like to answer ticket in ONE
queue called “support” using different languages.
The language depends on the language of the requestor.
If the requestor has no language set, we have to set
the language automatically (scrip) dependent on the
"To"-email-addr used for creating the ticket.
The “Correspondence-Template” checks the language of the requestor
and changes the language for the signature dynamically.
Scrip name: OnCreateSetLanguage
Precondition: ticket.isReceivedByEmail() && !requestor.isSetLanguage()
Action: requestor.setLanguage(<depend on “To”-emailaddr)
my $inMessage = $self->TransactionObj->Attachments->First;
return 0 if ( !$inMessage ); # if no message attachment - assume web UI
return 0 if ( !$inMessage->GetHeader(‘Received’) ); # exit if not email
Can somebody help me to create the Precondition and Action ? Currently I