[Rt-devel] [rt-users] order of scrips

Boldra paul at boldra.com
Mon Jun 12 06:21:41 EDT 2006


I had a similar problem and found the best solution was just to merge 
the two scips into one.  In the end I actually had four scrips merged 
into one.

However, if you're extracting customfields from incoming mail, you may 
find that moving the logic of your second scrip to the "cleanup" section 
of the scrip helps.

Lim, Justin wrote:
> I am trying to do 2 things on "ON CREATE"
> First is extract custom fields then send an autoreply with the custom
> fields in the content of the email.
>
> When the scrip is setup for on create on both no matter what the
> description name is it is still sending the autoresponse first...
>
>  
>
> -----Original Message-----
> From: Todd Chapman [mailto:todd at chaka.net] 
> Sent: Friday, June 09, 2006 1:55 AM
> To: Lim, Justin
> Cc: RT-Users at lists.bestpractical.com
> Subject: Re: [rt-users] order of scrips
>
> Scrips can be ordered in 3.6. I think it does it by sorting on name.
>
> -Todd
>
> On Fri, Jun 09, 2006 at 12:41:31AM -0400, Lim, Justin wrote:
>   
>> Can the order of scrip execution be changed ?
>>  
>> i have noticed that the autoreply email is sent first then the values 
>> from the customfields are taken in so when i try to put the contents 
>> of the customfields it does not display in the emails since the values
>>     
>
>   
>> are null due to the fact that the autoreply is sent first.
>>  
>> i have tried to put the extract customfields scrip to run on create 
>> then autorespond to run on transition but that generates n-1 # of 
>> emails where n = # of customfields.
>>  
>> is there a better way to handle this ?
>>  
>> Thanks
>> desperately looking for help...
>>     
>
>   
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com Commercial support: 
>> sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
>> Buy a copy at http://rtbook.bestpractical.com
>>
>>
>> We're hiring! Come hack Perl for Best Practical: 
>> http://bestpractical.com/about/jobs.html
>>     
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>
>
> We're hiring! Come hack Perl for Best Practical: http://bestpractical.com/about/jobs.html
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20060612/31ee2c0e/attachment.htm


More information about the Rt-devel mailing list