function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel Fields 1Daniel Fields 1 

How to get the line items for a quote?

First, I'm new to Salesforce and the API.  I'm trying to familiarize myself with the API and using it on C#.  I've been able to accomplish the basic tasks.

I have been able to get a list of quotes.  I have also accessed the details of a sepcific quote.  I need to access the line items for a specific quote.

Which API call do I make?
Best Answer chosen by Daniel Fields 1
Ajay K DubediAjay K Dubedi
Hi Daniel,

Use below query for getting line items for a quote:

SELECT Id FROM QuoteLineItem WHERE QuoteId = :parent.Id

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi

All Answers

Ajay K DubediAjay K Dubedi
Hi Daniel,

Use below query for getting line items for a quote:

SELECT Id FROM QuoteLineItem WHERE QuoteId = :parent.Id

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi
This was selected as the best answer
Daniel Fields 1Daniel Fields 1
I got the detail using the api call with the Id of the quote.  However, I am very interested in your approach.  How do you implement that query in C#?