Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Bad request at SDK.JQuery.retrieveMultipleRecords

Posted on by 105

Hi everybody, i will try this retrieveMultiple but even get the same answer: 

Dont exist property 'guid' type 'Microsoft.Xrm.Sdk.Entity' at position 25.

var evento = Xrm.Page.getAttribute("mme_eventoasociado");

function noBills(bills, evento)
{
SDK.JQuery.retrieveMultipleRecords("mme_cotizacionevento", "$select=statuscode&$filter=mme_eventoasociado/Id eq guid '" + evento + "'",
function (resultados)
{
if (resultados.length > 0)
return false;
else
return true;
},
function (error) {
Xrm.Utility.alertDialog(error.message);
},
function OnComplete() { });
}

Any ideas?

Categories:
  • Shiongo Profile Picture
    Shiongo 105 on at
    RE: Bad request at SDK.JQuery.retrieveMultipleRecords

    Hi Pravin

    the resul is:

    dynamics.minenergia.gov.co:5555/.../mme_cotizacioneventoSet eq guid '0DED6F88-38C5-E911-9BA1-0050569D6790' and statuscode/Value eq 174930002

    and i get this answer:

    <error><code/><message xml:lang="es-CO">Dont exist 'guid' from type 'Microsoft.Xrm.Sdk.Entity' en la posición 25.</message></error>

  • Verified answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Bad request at SDK.JQuery.retrieveMultipleRecords

    I think you are passing whole object of lookup as parameter, actually in guid parameter you should have to pass guid without open and closed curly brackets ('{' and '}')

    Syntax should be as follows:

    "$select=statuscode&$filter=mme_eventoasociado/Id eq guid'00000000-0000-0000-0000-000000000000'";

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans