Insert Dynamic Field Tag/Variable in an event Notification

Moderator: crythias

Post Reply
eltoniodelavega
Znuny newbie
Posts: 3
Joined: 28 Nov 2012, 19:23
Znuny / OTRS Version: 3.1.7

Insert Dynamic Field Tag/Variable in an event Notification

Post by eltoniodelavega »

Hello,

Let's say i write an notification template using the OTRS tags : such as

Code: Select all

Hello <OTRS_CUSTOMER_REALNAME>
[blablbla]

Now I created a DynamicField called foo. How can I include the value of this DynamicField (filled when creating a new phone ticket) within the notification text?
That is to say, what is the correct code syntax to do something like

Code: Select all

"Dear <OTRS_CUSTOMER_REALNAME>. 
You said <OTRS_TICKET_DYNAMIC_FIELD_foo>."
?

Thanks !

T.
eltoniodelavega
Znuny newbie
Posts: 3
Joined: 28 Nov 2012, 19:23
Znuny / OTRS Version: 3.1.7

Re: Insert Dynamic Field Tag/Variable in an event Notificati

Post by eltoniodelavega »

Hmmm...
I've looked at this (http://bugs.otrs.org/show_bug.cgi?id=8551) but it doesn't seem to concern OTRS 3.1.7 :/
jojo
Znuny guru
Posts: 15013
Joined: 26 Jan 2007, 14:50
Znuny / OTRS Version: Git Master
Contact:

Re: Insert Dynamic Field Tag/Variable in an event Notificati

Post by jojo »

"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
eltoniodelavega
Znuny newbie
Posts: 3
Joined: 28 Nov 2012, 19:23
Znuny / OTRS Version: 3.1.7

[solved] Re: Insert Dynamic Field Tag/Variable in a Notifica

Post by eltoniodelavega »

Many thanks to Jojo. The problem was that I was indeed using variable names such as <OTRS_TICKET_DynamicField_platform> or <OTRS_TICKET_DYNAMICFIELD_platform> (case seems to be insensitive), but I my DynamicFields where using the "Article" type instead of "Ticket"...

In the end I had to use the Ticket type (hacked into the SQL DB (table dynamic_field) to avoid creating new ones...)

Problem solved :)

T.
Post Reply