# Salesforce Filter Criteria

Primer provides robust Salesforce filtering options to help you build and refine your audience. Here’s how you can filter by fields on various objects within the platform:

#### **Available Objects for Filtering**

Account, Contact, Lead

<figure><img src="/files/p3XsMuyw9dWnxY4JV2i5" alt="" width="322"><figcaption></figcaption></figure>

#### Filter Fields by Objects

You can filter by any field, whether it’s a standard or custom field, within these objects. Use the search to find fields you want, such as "Account Type", or narrow your search to specific objects by selecting from options like all accounts, all contacts, or all leads.

<figure><img src="/files/4AoHN3GF9fAltjUk7uZD" alt="" width="375"><figcaption></figcaption></figure>

#### Custom Field Estimates Slow At First

{% hint style="info" %}
If you're using a standard Salesforce field, it will load quickly right from the start since it's a first-class field. For custom Salesforce fields, the initial estimation might take longer the first time you use it. However, once it's used, we'll mark it as a first-class field, ensuring it loads very quickly in future uses.
{% endhint %}

<figure><img src="/files/Uitc5SKb4zENbcs0VsfO" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
Remember: You can also mix match Salesforce filters with Primer's built-in firmographic and demographic filters, like headcount, job title, etc.
{% endhint %}

You can even bulk import all Leads, Contacts or Accounts to include or exclude them from the Audience using operators like "is known" or "is unknown".

<figure><img src="/files/8DNR49zMmbsfnXe3P0h4" alt="" width="375"><figcaption></figcaption></figure>

#### Date Fields

When it comes to date fields, Primer is particularly powerful.&#x20;

* **Choose a Date Field**: Select a date-based field from the available options.
* **Select an Operator**: Choose an operator such as "is" or "is not."
* **Specify a Date or Time Frame**:
  * For exact dates, enter the specific date.
  * For relative time frames, select an operator like "within last" and specify the number of days, weeks, months, or years.

**Example**: If you want to target individuals whose last opportunity closed loss date is not within the last three months, you can set up a filter to capture this criterion. This feature creates look-back windows that automatically update daily.

<figure><img src="/files/MbmyXv5Sf79BMlZvJXmW" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://support.sayprimer.com/primer/build-and-manage-audiences/building-an-audience/adding-filters/salesforce-filter-criteria.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.
