Mark,

I can also create your own variables.

In Modules/AdminCompose.pm, prior to (approx line 270):

    # replace customer data
    foreach (keys %Customer) {
        if ($Customer{$_}) {
                $Data{Signature} =~ s/<OTRS_CUSTOMER_$_>/$Customer{$_}/gi;
                $Data{Salutation} =~ s/<OTRS_CUSTOMER_$_>/$Customer{$_}/gi;
                $Data{StdResponse} =~ s/<OTRS_CUSTOMER_$_>/$Customer{$_}/gi;
        }
    }

you can add a variation of the following:

#
# add custom values to Subject
#
    $Data{Subject} =~ s/<CUSTOMER_NAME>/$variable[1]/g;
    $Data{Subject} =~ s/<SITE_ID>/$variable[2]/g;
    $Data{Subject} =~ s/<LOCATION>/$variable[3]/g;

#
# add custom values to StdResponse
#
    $Data{StdResponse} = $Self->{QueueObject}->GetStdResponse(ID => 
$GetParam{ResponseID});
#
    $Data{StdResponse} =~ s/<ORIGINATOR>/$variable[0]/g;
    $Data{StdResponse} =~ s/<CUSTOMER_NAME>/$variable[1]/g;
    $Data{StdResponse} =~ s/<SITE_ID>/$variable[2]/g;
    $Data{StdResponse} =~ s/<LOCATION>/$variable[3]/g;

All you then need to do is create your response templates as normal and include 
your customer tags.

HTH,

Graeme

Christian Schoepplein wrote:
> Hello,
> 
> On Fri, Jul 22, 2005 at 03:35:32AM -0400, Mark J. Nernberg wrote:
> 
>>>From: Daniel Balan <[EMAIL PROTECTED]>
>>>Organization: BitDefender
>>>Reply-To: "User questions and discussions about OTRS.org" <[email protected]>
>>>Date: Fri, 22 Jul 2005 10:09:17 +0300
>>>To: "User questions and discussions about OTRS.org" <[email protected]>
>>>Subject: Re: [otrs] OTRS Variables.
>>>
>>>I had a question like yours on 7/1/2004 10:57 AM (See: "[otrs] ticket id
>>>in the body" message) and that is what Robert from OTRS team told me.
>>>
>>>Maybe v2 will have more
>>
>>I was hoping to use some of the other values in my responses.
> 
> 
> Go to the response section in the adminarea and take a look at the 
> bottom of the screen. There you'll find the notes and a list of 
> variables that you can use. This note section exists for all settings in 
> the adminarea.
> 
> Ciao,
> Christian
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> Support oder Consulting für Ihr OTRS System?
> => http://www.otrs.de/

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to