---
schema_version: "1"
id: 2f3698a3b666104a8a4f2206aeed31fd123d07609c289f20a493a514aeb21d29
title: WITH PricebookId
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-soql-sosl/guides/soql-sosl/sforce-api-calls-sosl-with-pricebook-id.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-soql-sosl/guide/sforce-api-calls-sosl-with-pricebook-id.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f8adc637b32cb2b43a8ef35e848e881f82544aa73d6e0821a4c5babe45a6fbbd
products:
  - SOQL and SOSL Reference
  - Platform Developer Content
---

# WITH PricebookId

Filters product search results by a single price book ID.

Only applicable for the Product2 object. The price book ID must be associated with the product that you’re searching for. For example:

```nolang
Find {laptop} RETURNING Product2 WITH PricebookId = '01sxx0000002MffAAE'
```
