Metadata Services

Jun 28, 2012 at 2:33 PM

I am using your library and love it. It has everything that I was using in it, and the fact that I can select whether a call is sync or async is the best feature of this library for me. The only thing that I miss, is that you did not include the Metadata Services that are provided in the SDK. It would be awesome to see the sdk.metadata.js methods in your library to get entity information without the need of another library.

Thanks for this great library and if you would like me to integrate it and send it to you instead let me know.



Jul 2, 2012 at 9:24 AM

Hey Louis.

That would be great. I could add you into the project if you are keen.


Jul 2, 2012 at 3:35 PM


If the reason why MetaData service is required, in case you want to get the lable of a OptionSet Field. formatteValue might fit the purpose

var cols = ["firstname", "lastname", "middlename", "familystatuscode", "ownerid", "creditlimit", "birthdate", "donotemail", "donotphone"];
var retrievedContact = XrmServiceToolkit.Soap.Retrieve("contact", contactId, cols);
var familyStatusLable = retrievedContact.attributes['familystatuscode'].formattedValue;