Metadata Services

Jun 28, 2012 at 1: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.

Sincerely,

Louis

Coordinator
Jul 2, 2012 at 8:24 AM

Hey Louis.

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

Jaimie

Coordinator
Jul 2, 2012 at 2:35 PM

btw.

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;