web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Bad request at SDK.JQuery.retrieveMultipleRecords

(0) ShareShare
ReportReport
Posted on by 107

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:
  • Verified answer
    Pawar Pravin Profile Picture
    5,237 on at

    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'";

  • Shiongo Profile Picture
    107 on at

    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>

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans