[Solved] DynamicField Url: Placeholder for email and customer name

Moderator: crythias

Post Reply
SUns86
Znuny newbie
Posts: 5
Joined: 25 Apr 2017, 15:58
Znuny Version: 5.0.18

[Solved] DynamicField Url: Placeholder for email and customer name

Post by SUns86 »

After some investigation, I figured out how to use the value of a dynamic field inside the "show link" url. The help ([% Data.Field1 | uri %]) is a little bit difficult to understand.

Now my question: is it possible to use values from the ticket e.g. the "From:" field? I'm searching for something like [% Data.Ticket_Email %]

I'm using OTRS free 5.0.18

Code: Select all

https://example.com/index.php?action=showuser&otrs_value=[% Data.DynamicField_MyField1 | uri %]
Selection_108.png
You do not have the required permissions to view the files attached to this post.
Last edited by SUns86 on 26 Apr 2017, 17:33, edited 1 time in total.
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: DynamicField Url: Placeholder for email and customer name

Post by Giulio Soleni »

Hi,
as far as I know you should be able to use [% Data.TicketID | html %] to retrieve the specific ticket ID (not ticket number) within the "show link" URL, but I did not tested any other possible placeholder.

HTH
Giulio
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: DynamicField Url: Placeholder for email and customer name

Post by root »

Ticket attributes work, like Data.TicketNumber, Data.CustomerUserID, etc. Afaik is the data from the TicketGet call (http://doc.otrs.com/doc/api/otrs/stable ... et.pm.html) available.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
SUns86
Znuny newbie
Posts: 5
Joined: 25 Apr 2017, 15:58
Znuny Version: 5.0.18

Re: DynamicField Url: Placeholder for email and customer name

Post by SUns86 »

Ok, thank you. [% Data.CustomerUserID | html %] is the thing I was looking for.

Code: Select all

https://example.com/index.php?action=showuser&otrs_value=[% Data.DynamicField_MyField1 | uri %]&email=[% Data.CustomerUserID | html %]
Post Reply