Retrieve function problem

Nov 15, 2012 at 3:15 PM

Hi Daniel,

first of: thanks for providing this great library, it has helped me a lot in my development and learning efforts.

 

I have found an issue when using the Retrieve function. I have a situation where I need to use an expand/select part of the Odata query.

I am using code based on the XrmSvcToolkitTest.aspx unit test that you provided. The issue I am running into is that when this part of code is about to execute: if(opts.length>0||opts.length>0) - It always evaluates as false - as the opts is not an array, but an object and does not have a length property(attribute).

 

Am I doing something wrong/or is this a known bug?

 

Thanks,

Kind Regards,

Peter

Coordinator
Nov 15, 2012 at 8:29 PM

Hi Peter, 

Thanks for your message. 

That code is a strange one, I am not sure why I was writing something like that. It must be "if (select.length > 0 || expand.length > 0)". I am running a check, and will post an update once I have further details. 

Kind regards,

Daniel Cai

Coordinator
Nov 16, 2012 at 4:44 AM

Hi Peter, 

I have checked in the source code that fixes this particular problem. 

Thanks for reporting this issue. 

Kind regards,

Daniel Cai

Nov 16, 2012 at 9:52 AM

Hi Daniel,

 

Thanks for such a quick response and fix. Everything works properly now.

 

Kind Regards,

 

Peter Malecka