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

Moderator: crythias

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

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

Post by SUns86 » 26 Apr 2017, 15:39

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
OTRS superhero
Posts: 391
Joined: 30 Dec 2010, 14:35
OTRS 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 » 26 Apr 2017, 16:53

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
Moderator
Posts: 1570
Joined: 18 Dec 2007, 12:23
OTRS Version?: 4/5/6
Real Name: Roy Kaldung
Company: Znuny Inc.
Contact:

Re: DynamicField Url: Placeholder for email and customer name

Post by root » 26 Apr 2017, 17:12

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.
OTRS 4/5/6 CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

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

SUns86
OTRS newbie
Posts: 5
Joined: 25 Apr 2017, 15:58
OTRS Version?: 5.0.18

Re: DynamicField Url: Placeholder for email and customer name

Post by SUns86 » 26 Apr 2017, 17:33

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