[rt-users] create transaction record

Bryon Baker bbaker at copesan.com
Wed Oct 12 10:09:51 EDT 2016


Thanks Bill 

I should have thought of that, I will pursue one of those options.

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 Ext. 2296 * 262-783-6261 Ext. 2296
bbaker at copesan.com
www.copesan.com
"Servicing North America with Local Care"

-----Original Message-----
From: rt-users [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Bill Cole
Sent: Tuesday, October 11, 2016 11:16 PM
To: rt-users <rt-users at lists.bestpractical.com>
Subject: Re: [rt-users] create transaction record

On 10 Oct 2016, at 17:16, Bryon Baker wrote:

> Hello List
>
> I have created a custom scrip the will respond to an email via a web 
> service call.  I would like to create a transaction with the return 
> message.
>
> Can someone give me a little code snippet or some direction on how to 
> create the transaction?  With our creating or updating a custom field.
>
> I have read about the _RecoredTransaction but I think this may be the 
> wrong route and I have not found any example code to help me out.

Have you read
https://docs.bestpractical.com/rt/4.4.1/RT/Transaction.html#Create ?

Probably more useful: 
https://docs.bestpractical.com/rt/4.4.1/RT/Ticket.html#Comment

The simplest way to call it, given a RT::Ticket object named ticket:

$ticket->Comment( Content => "I'm A Little Teapot" );

And now you have a new comment transaction.
---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Boston - October 24-26
* Los Angeles - Q1 2017



More information about the rt-users mailing list