I hope I'm not oversimplifying and missing something here, but this seems to me
like it is built into RT.
I'd think the best way would be to have the auto notifications turned on for
the CRM queue. Even if the Requestor of the ticket has an external email
address, RT should send that user an email telling them they have a new ticket.
In reading your initial email, it sounds like you might have a queue that
sometimes CRM tickets go into (with an external Requestor), but not all tickets
in that queue should get auto-replies?
If that is true, maybe you can use a scrip something like this:
Condition: User Defined
Action: Notify Requestors
Template: Autoreply in HTML
Applies to: CRM Queue
add a Custom Condition something like this (completely untested!):
# AUTO-NOTIFY REQUESTOR ONLY IF THEY HAVE EXTERNAL ADDRESS
# (e.g. TICKET IS CREATED BY CRM)
# BAIL OUT IF THIS IS NOT AN "On Create" ACTION:
return 0 unless $self->TransactionObj->Type eq "Create";
my $Ticket = $self->TicketObj;
my $Requestors = lc($self->TicketObj->RequestorAddresses);
$RT::Logger->debug("Requestors for ticket #:" . $Ticket->id . " are:
$Requestors");
foreach my $Person (split(',', $Requestors)) {
return 1 if ( $Person !~ m/@example\.com/i<mailto:m/@example\.com/i> );
}
# NO ONE WITH AN EXTERNAL ADDRESS (e.g. NOT "example.com"), SO
# DON'T SEND AUTO-REPLY
return 0;
Alternatively, you could use a custom field (containing external email address)
that is only populated if it was created from CRM, and make a scrip that fires
on that condition (e.g. email address is present in that field), sending a
notification to that address, but then you would may end up designing all sorts
of triggers and conditions to handle other built-in RT functionality for
external requestors?
- Brent
From: rt-users [mailto:[email protected]] On Behalf Of
Joel Bergmark
Sent: Tuesday, May 10, 2016 3:22 AM
To: [email protected]
Subject: Re: [rt-users] API - Forward/Vb externally
Hi again,
Made a small but ugly flowchart on how i would like it to work. I also found
several people asking for similar functionality. Does anyone know if this is
possible with RT today? (Either create ticket then auto forward, or create
ticket then use the api on that ticket to forward externally)?
https://docs.google.com/drawings/d/1QMptft9mywdzNtqp6Juq5RJw1tCJJy3-3DZ5ZlP8mB0/edit?usp=sharing<https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_drawings_d_1QMptft9mywdzNtqp6Juq5RJw1tCJJy3-2D3DZ5ZlP8mB0_edit-3Fusp-3Dsharing&d=DQMFAw&c=VCWpAYkS3z1bOCIxc-BPGZarCq9MRCAVxZJE051VqH8&r=luSRdPePk6fhFa3rH2PFBzWEtgcJguY0a__6vpfaX-I&m=NbNt0eRtCSOqU7Rs_c-n3e-SAQozk7Im3zZtbHR54IE&s=G_-WcwHxI3oF6ROJt8xPFYjA01NVNaw1ZJILkO6iufk&e=>
Regards, Joel
Från: rt-users [mailto:[email protected]] För Joel
Bergmark
Skickat: den 9 maj 2016 10:21
Till: [email protected]<mailto:[email protected]>
Ämne: [rt-users] API - Forward/Vb externally
Hi everyone,
Just looking for some suggestions, we are in the processes of implementing our
CRM system to talk to the REST API, and I got stuck a bit on the best way to
use the API to create a ticket and then forward the information in the ticket
to external party by email.
In our case we have 15 different Queues that different departments work in,
many of them are for both internal (RT/CRM) and external communication. And
some of them does not really fit for "On create autoreply to requestors".
Have anyone of you guys set up a similar thing, or does anyone have a better
way to do this?
Regards, Joel.
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016