On Thu, Apr 19, 2012 at 10:28:33AM -0500, Kory Prince wrote: > (Sorry for the previous email. My work email client is terrible.) > > Hello all,Using a custom scrip action, I send sms messages to the new > owner of a ticket when they are assigned a ticket (On Owner Change.) > > I have researched on the web, browsed this mailing list, and went > through the perldoc of Ticket.pm, Transaction.pm, etc. > > I cannot find a way to simply add a transaction to the history of the ticket. > > For example the ideal thing to be able to do would be to add a new > transaction like when it says: > The RT System Itself - Outgoing email recorded > > and attaches the message.I would like it to say > > The RT System itself - Outgoing SMS recorded > or something similiar and attach the sms message. > > But all I absolutely need is to be able to somehow record in the > history that the message was sent. > > From looking at the code, it seems that I should not create a > transaction object directly but use ticket methods to do so, but I > don't see any ticket methods that will create a new transaction!
You want to use the _NewTransaction method available on Records. You can trace through the Correspond method on Tickets to get a sense of how it's typically used. -kevin
pgpHRjWyB9liE.pgp
Description: PGP signature
