---
title: SalesforceAdaptiveResultLink Component
slug: m6im5231
canonical_url: https://docs.coveo.com/en/m6im5231/
collection: coveo-for-salesforce
source_format: adoc
---
# SalesforceAdaptiveResultLink Component
> **Available since**
>
> This feature was introduced in the June 2020 release of Coveo for Salesforce version [4.4](https://docs.coveo.com/en/3236#june-2020-release-v4-4).
The `SalesforceAdaptiveResultLink` component uses contextual information to determine which `ResultLink` component (that is, [`ConsoleResultLink`](https://docs.coveo.com/en/2983/), [`SalesforceResultLink`](https://docs.coveo.com/en/1250/), or [`ResultLink`](https://coveo.github.io/search-ui/components/resultlink.html)) is most appropriate to open a search result. It then instantiates this component.
Under the hood, the `SalesforceAdaptiveResultLink` component uses the following matrix to determine which component to instantiate.
[cols="5",options="header"]
|===
|Environment
|Component
|Local Salesforce object
|Remote Salesforce object
|Non-Salesforce and Salesforce Community
.2+|Classic Console
|**Insight Panel** (Case record)
|`SalesforceResultLink`
|Not Supported
|`ResultLink`
|**Full Search**
|`SalesforceResultLink`
|`SalesforceResultLink`
|`ResultLink`
.2+|Lightning Console
|**Insight Panel** (Any record type)
|`ConsoleResultLink`
|`ResultLink`
|`ResultLink`
|**Full Search**
|`ConsoleResultLink`
|`ResultLink`
|`ResultLink`
|Lightning App
|**Insight Panel**
|`SalesforceResultLink`
|`ResultLink`
|`ResultLink`
.2+|Experience Cloud site
|**Case Deflection**
|`SalesforceResultLink`
|`ResultLink`
|`ResultLink`
|**Community Search**
|`SalesforceResultLink`
|`ResultLink`
|`ResultLink`
|Other
|Generic Search Page
|`ResultLink`
|`ResultLink`
|`ResultLink`
|===
## Options
To reference the `SalesforceAdaptiveResultLink` component in a custom component, you must specify the following context options to enable the component to perform the appropriate logic.
> **Note**
>
> The browser console will display a warning message whenever a mandatory option is missing.
### sfOrganizationId
The Salesforce organization ID. This value is used to determine whether or not a Salesforce result belongs to the current Salesforce organization.
### environment
The environment in which the search interface is running.
This option is mandatory.
Available values:
* `classic`
* `lightning-app`
* `lightning-community`
* `lightning-console`
* `other`
### component
The Coveo for Salesforce component that's hosting the search interface.
This option is mandatory.
Available values:
* `Community_CaseDeflection`
* `Community_Search`
* `Internal_AttachedResults`
* `Internal_FullSearch`
* `Internal_InsightPanel`
* `other`
## Methods
This component doesn't offer any methods.
## Usage
Reference it in a Coveo for Salesforce component as follows:
```xml
```
**Example**
To use the `SalesforceAdaptiveResultLink` component in a custom Coveo Insight Panel Lightning Component, you would declare the component as follows in a result template:
```xml
```