# How do standard Quotes integrate with Opportunities in Salesforce Sales Cloud to support quote-to-cash workflows (syncing, line items and orders)?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Asked at:** Salesforce, Infosys, IBM · **Tags:** Sales Cloud, Quotes, Quote-to-Cash

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-quotes-integrate-with-opportunities-in-sales-cloud-to-support-quote-to-cash-workflows

## Answer

In Sales Cloud, the standard **Quote** object connects an opportunity to a priced, shareable offer, and it feeds the quote-to-cash process: *opportunity \u2192 quote \u2192 order/contract \u2192 invoice and payment*.

**Key objects**
- **Opportunity**: the deal and its stage.
- **Quote** and **Quote Line Items**: the priced offer. One opportunity can have several quotes.
- **Opportunity Products** (line items): the products on the deal.

**How they work together**
1. A rep creates a quote from the opportunity. Products from the pricebook are added as quote line items, with quantity, discount and price.
2. **Syncing**: one quote is **synced** with the opportunity (`SyncedQuoteId`). Line items stay aligned in both directions, so the opportunity amount matches the quote, and pipeline and forecast reports stay accurate.
3. **Approval and document**: discounts can need approval, and a **quote template** produces a PDF to send to the customer.
4. **Acceptance**: when the customer accepts, the opportunity moves to Closed Won.
5. **Fulfilment**: the quote data supports creating an **Order** or **Contract**, which then feeds billing and invoicing in an ERP or a billing product.

**Why it supports quote-to-cash**
- One source of truth, from price to order, with no re-keying.
- Reliable revenue forecasting, because the amount comes from the quote.
- A full audit trail of what was offered and accepted.

**List the quotes for an opportunity**

```soql
SELECT Id, Name, Status, GrandTotal, IsSyncing
FROM Quote
WHERE OpportunityId = :oppId
ORDER BY CreatedDate DESC
```

**Create a quote with a line item and sync it**

```apex
Quote q = new Quote(Name = 'Annual Licence Quote', OpportunityId = oppId, Pricebook2Id = pricebookId);
insert q;

insert new QuoteLineItem(
    QuoteId = q.Id,
    PricebookEntryId = pricebookEntryId,
    Quantity = 10,
    UnitPrice = 500
);

update new Opportunity(Id = oppId, SyncedQuoteId = q.Id);
```

**Good to know**
- A quote and its opportunity must use the same pricebook.
- Syncing replaces the opportunity's products with the quote's products, so confirm with the team before enabling it on live data.
- For complex pricing, bundles and subscriptions, companies use **Salesforce CPQ** or Revenue Cloud instead of the standard Quote.

**Interview tip:** describe the data flow and mention the **synced quote** as the link that keeps the opportunity amount correct.

---
Source: ForceChallenges · last updated 2026-10-31
