Which variables are available for calling actions in MenuModule ?

Moderator: crythias

Locked
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Which variables are available for calling actions in MenuModule ?

Post by racagalro »

Hello,

I'm trying to add a new option in MenuModule in AgentTicketZoom consisting on direct link to AgentTicketPhone for ticket creation. My goal is to make easier the creation of linked tickets for the agent, filling up most fields in AgentTicketPhone screen by passing them in URL.

In sysconfig -> Ticket -> Frontend::Agent::Ticket::MenuModule I have defined Link as (following example in [url]http://blog.otrs.org/2010/11/02/otrs-3- ... ent-page-1):
Action=AgentTicketPhone;Subaction=StoreNew;ExpandCustomerName=2;CustomerUser=<something>

I would like to get CustomerUser from the ticket variables of the Ticket actually shown in TicketZoom. I see that, for example, TicketID is a variable that can be use . I tested others, such as CustomerID, ServiceID, TicketNumber and they exist and are expanded in its values.
However I couldn't find any way to get Customer data such as User login or name (I tried variables CustomerUser, Login, From, etc but they seem not to be defined as nothing is expanded).

¿Could you please help me? ¿Which variables are available for using in MenuModule for calling actions?

Thanks and best regards
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Re: Which variables are available for calling actions in MenuModule ?

Post by racagalro »

Don't waste time on this subject. I finally found the answer to my question. I used "CustomerUserID" to get the login name of the customer user.

The full action I put in sysconfig Frontend::Agent::Ticket::MenuModule
was:

Action=AgentTicketPhone;Subaction=StoreNew;ExpandCustomerName=2;CustomerUser=$QData{"CustomerUserID"}

And it works fine. The customer user is already filled up when the AgentTicketPhone window is opened.

Thanks.
brandner
Znuny newbie
Posts: 10
Joined: 13 Oct 2015, 20:14
Znuny Version: 5.0.9
Real Name: Tony Brandner

Re: Which variables are available for calling actions in MenuModule ?

Post by brandner »

For version 5, I also wonder - Which variables are available for use in MenuModule for calling actions?
I can get Data.TicketID, but no other variables seem to work.
Locked