---
schema_version: "1"
id: 73fad7abe6ceb67e3522784c0c2a60b633a20098b5ac72ca9b52650a6e257bed
title: Configuring a SOSL Search Data Source (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_configuring_a_sosl_search_data_source.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configuring_a_sosl_search_data_source.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c0f0326643659d41a928dee77324b80e4e13534d432b5a8d09d4409d284ee245
description: For the managed package runtime, construct text-based search queries against the search index with Salesforce Object Search Language (SOSL).
products:
  - Omnistudio
release: "264"
---
# Configuring a SOSL Search Data Source (Managed Package)

For the managed package runtime, construct text-based search queries against the search index with Salesforce Object Search Language (SOSL).

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

You can search text, email, and phone fields for multiple objects to which you have access, including custom objects, in a single query. See the [SOSL and SOQL Reference](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_sosl_intro.htm) in the Salesforce help. The SOSL queries are encrypted so that Cards do not display query information on the client-side.

To create a SOSL query for a card:

1. On the Vlocity Cards tab, click **New** to configure a data source for a new cards component, or select an existing component to configure its data source.
2. In the Cards Designer, in the Layout or Cards pane, from the **Data Source** picklist, select **SOSL Search**.
3. Select or enter values for the following:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30341e88">
                  <p style="margin-bottom:0;">Field</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d30341e94">
                  <p style="margin-bottom:0;">Select or Enter</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e88 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Search For</strong>
                  </p>
                </td>

                <td data-label="Select or Enter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e94 ">
                  <p style="margin-bottom:0;">Enter the search term in the object field. Must be more than one character.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e88 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">In</strong>
                  </p>
                </td>

                <td data-label="Select or Enter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e94 ">
                  <p>Select the fields to search:</p>
                  <ul>
                    <li>
                      <p>
                        <code>All fields (Name, Email, Phone)</code>
                      </p>
                    </li>

                    <li>
                      <p>
                        <strong class="uicontrol">Name Fields</strong>
                      </p>
                    </li>

                    <li>
                      <p>
                        <strong class="uicontrol">Email Fields</strong>
                      </p>
                    </li>

                    <li>
                      <p>
                        <strong class="uicontrol">Phone Fields</strong>
                      </p>
                    </li>

                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e88 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Returning sObject &amp; fields</strong>
                  </p>
                </td>

                <td data-label="Select or Enter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e94 ">
                  <p style="margin-bottom:0;">Select at least one sObject. Click <strong class="uicontrol">+ Add sObject</strong> to add more sObjects and fields.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e88 ">
                  <p style="margin-bottom:0;">
                    <strong class="uicontrol">Limit to</strong>
                  </p>
                </td>

                <td data-label="Select or Enter" class="slds-cell-wrap" style="vertical-align:top;" headers="d30341e94 ">
                  <p style="margin-bottom:0;">Specify the maximum number of rows to return.</p>
                </td>

              </tr>
            </tbody>
          </table>
4. Reusing topic #UUID-ae995bf9-95bf-810f-2f09-0d74d3ec2531
5. Test data source settings. To preview a cards component using real data, add a test variable that the query can use to return live data. See [Testing Data Source Settings](https://help.salesforce.com/s/articleView?id=xcloud.os_testing_data_source_settings.htm&release=264.0.0&type=5 "For the managed package runtime, add runtime variables to fetch and test your data source.").