# 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="https://3247093955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZgWZV8xsRYsv9vcuz9%2Fuploads%2FShXPog5aj2zIv876LJum%2Fedit_icon.png?alt=media&#x26;token=ac97d7b1-0234-4f5f-a954-79d97891be79" alt="" data-size="line">to edit the search object that you have created.
