| Daren's profileDaren TurnerBlogLists | Help |
|
December 15 How to pull entity information from the Microsoft CRM MetaData Service using javascript.
The following code will pull entity information, using the Metadata service, using javascript. This code is useful for pulling the objecttypecode dynamically when they may differ between environments. var _sWebServicesNamespace = "http://schemas.microsoft.com/crm/2006/WebServices"; function _RemoteMetaCommand(sCommand, sAction) var soapmessage = "<?xml version='1.0' encoding='utf-8'?>" return xmlhttp.responseXML; var entity = "new_country" //Get ObjectTypeCode var result = _RemoteMetaCommand(query, "RetrieveEntityMetadata").selectSingleNode("//ObjectTypeCode"); var countryentitytypecode = result.text;
Here is the response. TrackbacksThe trackback URL for this entry is: http://dtu11.spaces.live.com/blog/cns!D01B965C27CB1CC6!211.trak Weblogs that reference this entry
|
|
|