# Creating a Salesforce Search

## Prerequisites

You have added Salesforce as a Data Source.&#x20;

## Creating a new Search Object

1. Click **Add** to create a new **Search**.&#x20;
2. Select an **Object**. You can either type the Object in the search box or select it from the dropdown menu. For instance, we are going to create a new contact search. By selecting **Contacts** as the Object type, all searchable fields to the Contact object will be made available.&#x20;
3. By default, some fields (i.e. last name, first name, email) have been pre-selected. You can select any field from the **Available** list and click![](https://lh4.googleusercontent.com/IjZ0QdlVUBnCDKk5L9siMYzaxWOU6RU6YHnVTZEQJC2Je76v_no-mwbQJlDJ2UKkBxGhpTgHHfVQrjLlJjoq892lS6KKkRQdBatvI24NNxhxb7BU5e7eCXWDWy5BMjTWe9077XXoTDozLRMm7TeWjoZrg3zCDZXhfnFVFy5Zw-v0JEei4Zr8nC0OmA)to add and make them searchable. You can use these fields when executing a search in Slack. For instance, you can search for a contact in Salesforce using a contact’s last name as a keyword.&#x20;
4. Click **Save**. You will be redirected to the **DataFetch** web interface and the new search object will be displayed. You can click <img src="/files/EMenbtX4J99J5c53H6ga" alt="" data-size="line">to edit the search object that you have created.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datafetch.io/data-source-types/salesforce-sales-cloud/creating-a-salesforce-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
