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
Sourav HazraSourav Hazra 

Search on Communities

Hi,

We have a requirement to provide a search option to salesforce.com communities which actually performs search within communities as well as invoke an external web service to get the results from the customer websites. We have a requirement to display both the search results in a single page (we can show as 2 separate block). 

We have tried below 2 options and faces 2 different problems 
1. Provide a custom search - we can call a method which in turn call the Web Service as well as use SOSL to get the result list from different SFDC objects. But we are unable to provide a hyperlink to the search results returned from SOSL queries, so that record detail page can be open.
2. Enable global search in communities - obviously we can not call web service from the global search 

any thoughts on this will be highly appreciated. 

Regards,
Sourav

 

nitesh gadkarinitesh gadkari
nitesh gadkari
Hi Sourav,

I think i will support first one . for provideing hyperlink use below code
 
<!-- doesnot support account-->
<apex:page standardController="Attachment">
    <apex:outputLink   value="{!URLFOR($Action.Object_name_accept_account.View,
    
      record.id)}">
               Show!

    </apex:outputLink>

</apex:page>


Tell me if it helps.

Regards
Nitesh