Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9191707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:45:00+00:00 2026-06-17T20:45:00+00:00

How can I retrieve all products (= quote details) of a quote by javascript?

  • 0

How can I retrieve all products (= quote details) of a quote by javascript?

I have tried following code, but that doesn’t work:

id = quoteid
var options = "$select=ProductId&$filter=QuoteId eq (guid'"+ id + "'";
SDK.REST.retrieveMultipleRecords("QuoteDetail", options, ebcont.crm.quote._successQuoteDetailMultiRetrieve, function(error) {alert(error.message);}, ebcont.crm.quote._multiRetrieveQuoteComplete);

I always get following message:

 Error: 400: Bad Request: operator 'eq' is no compatible with operatortyp 'Microsoft.Crm.Metadata.ComplexTypeInstance'1 ... and 'System.Guid'

Does somebody have any idea what is wrong?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:45:02+00:00Added an answer on June 17, 2026 at 8:45 pm

    Try adding id to QuoteId:

    id = quoteid
    var options = "$select=ProductId&$filter=QuoteId/Id eq (guid'"+ id + "'";
    SDK.REST.retrieveMultipleRecords("QuoteDetail", options, ebcont.crm.quote._successQuoteDetailMultiRetrieve, function(error) {alert(error.message);}, ebcont.crm.quote._multiRetrieveQuoteComplete);
    

    It is case sensitive so be careful about that as well. I’d recommend using the FetchXmlBuilder plugin for the XrmToolBox to test REST oData calls first. It has an option to view the rest url. As long as your javascript generates the exact url, you should be good.

    Update 1

    With the new (in 2016) CRM WebAPI endpoint I’d also recommend Jason Lattimer’s CRM Rest Builder: https://github.com/jlattimer/CRMRESTBuilder/releases

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's assume that Stackoverflow offers web services where you can retrieve all the questions
I have a catalog with near 90000 products. I need to retrieve all the
I've created a cookie like below and can retrieve all font_size , back_color and
How can I retrieve all messages/sms in my phone and show in my own
How can I retrieve and copy all photos/videos from Photos app to my application
I have a situation whereby a thread can retrieve an object from the db,
I have generic list which must be a preserved order so I can retrieve
I have a website that contains many different pages of products and each page
This should be simple but I can't get it to work. I would like
OK So I have this list of products that are in the cart. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.