Hi Sebastian,
Hi all,
to integrate with a telephony suite (tk-Suite from Agfeo) i would like to
open the contacts crm view in a new Browser tab or window. I am able to
fetch the contacts id, so all i need is to jump to the right page. I am
aware that it is possible to open the search page looking for the phone
number with
egroupware/index.php?menuaction=addressbook.addressbook_ui.index&search=0123&cd=yes
but this does not go to the addressbook. It will show your search when you
enter the addressbook tab yourself, but if you are currently on the email
tab, it will stay there. So it would require 3 clicks as of now: click on
incoming call to feed phone number into search page and pop up browser,
click on addressbook tab, click on found contact. I would like to reduce
this to 1 click.
Thats why i would like to know, whether anyone has any solution to directly
open a contacts crm view from an external app.
Maybe use a script to send a made up post request? I am open to anything. I
am assuming that somebody else has already done something similar, as it is
so obviously useful and productive.
I heard that request a couple of times and implemented it now:
https://svn.stylite.de/viewvc/egroupware?revision=53864&view=revision
You have to use the following a little cryptic url to jump right into
CRM view of first contact matching the given search:
https://domain.com/egroupware/index.php?menuaction=addressbook.addressbook_ui.view&search=“49
123 456789”&ajax=true&cd=yes
As the phonenumber has spaces, which would construct an or-search, you
have to enclose it in double quotes. If your phone exchange gives a
phone-number with a leading + that would also need url-encoding as %2B.
Hopefully your app knows how to url-encode 
If it does not find at least one match, you will end up in addresssbook
list with search filled out with what you were searching for and no
result. If multiple contacts exist for that number, you can use arrow
buttons in CRM view to move to the right one.
Ralf
–
Ralf Becker
Director Software Development
Stylite AG
Isaac-Fulda-Allee 9 | Tel. +49 6131 32702-0
D-55124 Mainz | Fax. +49 6131 32702-70
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Ralf Becker | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
VAT DE214280951 | Registered HRB 46224 Mainz Germany