Hello,<br>
I hoping someone can help me understand why a scrip I'm trying to create is not working correctly.<br>
<br>
Description: MergeBasedOnContent<br>
Condition: On Create<br>
Action: User Defined<br>
Template: Global template: Blank<br>
Stage: TransactionCreate<br>
<br>
Custom condition: <blank><br>
Custom action preparation code: <br>
<br>
my $AttachObj = $self->TransactionObj->Attachments->First;<br>
my $content = $AttachObj->Content;<br>
if ( $content =~ s/^\Qmerge:\E\s*(\S+)\s*$//im ) {<br>
$self->TicketObj->MergeInto( $1 );<br>
}<br>
<br>
Custom action cleanup code: <blank><br>
<br>
The goal here is to search any new tickets for a string 'merge:'
followed by a number, and then merge the new ticket into that number.
This works fine for condition: On Correspond, but I am unable to get it
to work on create. It seems like its not finding the attachment.<br>
Any ideas?<br>
Thanks