<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ForwardFirstMessage</id>
	<title>ForwardFirstMessage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=ForwardFirstMessage"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ForwardFirstMessage&amp;action=history"/>
	<updated>2026-08-21T20:03:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=ForwardFirstMessage&amp;diff=1362&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=ForwardFirstMessage&amp;diff=1362&amp;oldid=prev"/>
		<updated>2016-04-06T20:09:05Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This code effectively re-sends the original email that was sent by the requestor and which caused the ticket to be created.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s particularly useful to use it as a template when a ticket is assigned to another user (&amp;#039;&amp;#039;&amp;#039;condition = On Owner Change; action = Notify Owner&amp;#039;&amp;#039;&amp;#039;). For example, if your workflow includes people who will not login to RT to reply to tickets and who are not AdminCC on a queue, then this is the only way they can get the original email and reply to it.&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
  my $Transactions = $Ticket-&amp;gt;Transactions;&lt;br /&gt;
  $Transactions-&amp;gt;Limit( FIELD =&amp;gt; &amp;#039;Type&amp;#039;, VALUE =&amp;gt; &amp;#039;Create&amp;#039; );&lt;br /&gt;
  my $first_message;&lt;br /&gt;
  my $CreateObj = $Transactions-&amp;gt;First;&lt;br /&gt;
  if( $CreateObj &amp;amp;&amp;amp; $CreateObj-&amp;gt;id ) {&lt;br /&gt;
    $first_message = $CreateObj-&amp;gt;Content;&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  $first_message;&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>