Passing HTTP_LINK to UserPhone
sameer615 opened this issue · 4 comments
Hey ,
I'm trying make any customer information field clickable or pass http-link to any field .
so i have tried this
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?cust=$Env{"UserPhone"}', 0],
OR
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?cust=$Data{"UserPhone"}', 0],
OR
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?cust=$Env{"UserPhone"}', 0],
its giving http://192.168.2.122/otrs/click2dial.pl?cust=$Env{
So I've tried without double quotes like this
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?cust=$Env{UserPhone}', 0],
its simply giving
http://192.168.2.122/otrs/click2dial.pl?cust=$Env{UserPhone}
So can you help in order to get values like this
http://192.168.2.122/otrs/click2dial.pl?cust=9864975877
Hi @sameer615,
The placeholder follow the default OTRS syntax:
[% Data.VARIABLE %]
For your example try the following:
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?cust=[% Data.UserPhone %]', 0],
Hi @rkaldung
Can you help to pass logged in user id in http-link
For Example :
Pass logged in agent id in link
[ 'UserPhone', 'Phone', 'phone', 1, 0, 'var', 'click2dial.pl?CustID=[% Data.AgentID%]', 0],
Something like above and get URL like :
Hi @sameer615 ,
This is not related to this add-on please use the community forum http://forums.otterhub.org/index.php for questions like this
hth, Roy