[rt-users] create transaction record
Bill Cole
rtusers-20090205 at billmail.scconsult.com
Wed Oct 12 00:15:30 EDT 2016
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.
More information about the rt-users
mailing list