I've run into that same problem. For some reason, when RT executes
transactions, the RT base transactions seemed to override any “scrip"
based changes that had a stage of “TransactionCreate”. When I turned on
"TransactionBatch” in my SiteConfig and set the “Stage” for the scrips
to “TransactionBatch” it resolved my problem. Hope this helps.
LBNLOn 5/4/2009 9:14 AM, Todd Chapman wrote:
I have a scrip that runs first and extracts custom fields on ticket
created. The Autoreply scrip runs second, but if I use
$Ticket->FirstCustomFieldValue(‘foo’) in the Autoreply template I
don’t get the value that was extracted in the first scrip. What am I
missing? Do I need to get the first scrip to commit somehow before the
Community help: http://wiki.bestpractical.com
Commercial support: firstname.lastname@example.org
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com