Does anybody know how I can get the Agent comment field and the customer phone number field from OTRS in the customer information bar on the right?
I tried $Env("UserComment"} but that doesn't work there.
How to get data fields
Moderator: crythias
Re: How to get data fields
Where do you want to use them?
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: How to get data fields
When I have a ticket open (Action=AgentTicketZoom) I want to use them from the Customer Information module on the right. I have a call-me-now php script on our PBX and want to able to click the customer phone number. I know how to make it an active link, but for that to work I need to complete the URI with the customer's phone number and the user's extension (which I have placed in the comment field of each agent).
Re: How to get data fields
It should look like:
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var', 'http://someserver/call.php?=$Data{"UserComment"}', 0 ],
You need to use $Data or $QData
[ 'UserComment', 'Comment', 'comments', 1, 0, 'var', 'http://someserver/call.php?=$Data{"UserComment"}', 0 ],
You need to use $Data or $QData
"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
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: How to get data fields
Thanks a lot, I finally got it working:
http://sip.informatique.nl/ps/call.php? ... rFirstname"} $Data{"UserLastname"}&dest=$Data{"UserPhone"}&shortname=iccbv&extension=$Env{"UserComment"}
http://sip.informatique.nl/ps/call.php? ... rFirstname"} $Data{"UserLastname"}&dest=$Data{"UserPhone"}&shortname=iccbv&extension=$Env{"UserComment"}