function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VDaveVDave 

Open CTI search Contacts/Accounts in Case/Opportunity

I am trying to find out if there is a way to have "Search" include objects  which are related to the results which are found. For example If a Contact has a phone number x and there is a Opportunity which has that contact in the contact role collection I would like it included in the search when I search x.

Specifically I am using the SearchAndGetScreenPopUrl() of the open cti api as found in the doc (http://www.salesforce.com/us/developer/docs/api_cti/api_cti.pdf).

I am currently solving this with a custom APEX class to do the search with the contacts/accounts I find with the default search "SearchAndGetScreenPopUrl()". This works but I have to do a second search once the first has completed.

I could also solve this issue with a custom object formula which hold the field I need to search for. If I did this I wouldn't need my APEX class.

What is the best approach? Is there a better one?
Ashish_SFDCAshish_SFDC
Hi, 


The alternative would be a pop up visualforce page which will get the required results based on a apex controller class. 

See the links below, 

SoftPhone Custom Visualforce page not working in Open CTI

https://developer.salesforce.com/forums/?id=906F00000009EcqIAE

Quickstart: Creating Custom Screen Pops Using Visualforce

https://developer.salesforce.com/page/Creating_Custom_Screen_Pop_Pages


Regards,
Ashish