Login / Register  search  syndication  about

          Ryan Farley's Blog

Ryan Farley on .NET Development with a focus on CRM Development for SalesLogix

Getting XSD Schema for CRM Entities

I posted before about the CRM Metadata Browser that can be used to see and document the various CRM entities. Another similar thing available is the ability to get the XSD schema for the CRM entities. As you drill into an entity from the metadata browser, you can simply change the directory in the URL or just type it in as follows:

http://yourcrmserver/sdk/xsd/entity.aspx?entity=account

 

Of course, just change the entity listed at the end with any valid entity schema name. How's that for cool?

What's This?
  
Bookmark and Share

About Ryan Farley

   Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix since 2001 and believes in sharing with the community. He loves C#, Javascript, Python, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

View the SalesLogix Mobile Seveloper Series
View the SalesLogix SData Developer Series
View the Git for the SalesLogix Developer series



Related Content
   Determining if a User Has Read or Write Access to a Field in SalesLogix Web
It is useful at times to be able to programatically determine at runtime if a user has read access, write
Posted on Jul 23, 2009 by Ryan Farley to Ryan Farley's Blog
 
   KnowledgeSync
Business Activity Monitoring (BAM) has become the way that many companies are generating real return from
Content from Partner Products Section
 
   ReadOnly and Disabled Fields
When you need to set fields disabled or readonly at runtime, you need to keep in mind the type of field y
Posted on Mar 06, 2006 by Ryan Farley to Ryan Farley's Blog
 
   Working with CRM 3.0 Sample Chapter Available
Mike Snyder and Jim Steger of Sonoma Partners have announced the availability of the sample chaper on Wor
Posted on Feb 28, 2006 by Ryan Farley to Ryan Farley's Blog
 
   Easier Navigation with Browser Tabs
A common complaint I hear those who are more used to the modality of Windows-based CRM applications is th
Posted on Feb 24, 2006 by Ryan Farley to Ryan Farley's Blog
 
Comments

 

Patrick Bounaix said:

Thank you for the tip! Very cool indeed, but I have a question:

I'd like to have visual studio generate a strongly-typed dataset from the xsd, but it fails because the base complex type, BusinessEntity is undefined. When I tried to make the base 'anyType' the other attributes (CrmMoney, CrmBoolean, etc.) failed for the same reason.

Do you have any ideas on how I can find these definitions or get around this? Whats nice is the xsd rendered includes all customizations, so I can use that as a base for binding...


Thanks again!
March 28, 2006 8:15 AM
 

Luigi said:

Unfortunately I dont know how to get
Types.xsd
CoreTypes.xsd

without them is unworthy cause I cannot use any tool like mapforce to create a map between this schema and others from other system.
Are you so kind to give me some hints?

thanks
July 3, 2006 1:11 PM
 

Tareq Ali said:

Hello,
I can get these schema when I import schemas fromCrm BizTalk application
----------------- Core Types
<?xml version="1.0"?>
<xsd:schema xmlns:core="http://schemas.microsoft.com/crm/2006/CoreTypes"">http://schemas.microsoft.com/crm/2006/CoreTypes" xmlns:types="http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/crm/2006/CoreTypes"">http://schemas.microsoft.com/crm/2006/CoreTypes" xmlns:xsd="http://www.w3.org/2001/XMLSchema">">http://www.w3.org/2001/XMLSchema">
<xsd:import schemaLocation=".\account_types.xsd" namespace="http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/" />
<xsd:annotation>
<xsd:documentation xml:lang="en">
=======================================================================
File: CoreTypes.xsd

Summary: Common types used across all CRM entities

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This file is part of the Microsoft CRM V3.0 SDK Code Samples.

Copyright (C) Microsoft Corporation. All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation. See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
=======================================================================
</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="BusinessEntity" abstract="true" />
<xsd:complexType name="CrmBoolean">
<xsd:simpleContent>
<xsd:extension base="xsd:boolean">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="name" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CrmDateTime">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="date" type="xsd:string" use="optional" />
<xsd:attribute name="time" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CrmDecimal">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="formattedvalue" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CrmFloat">
<xsd:simpleContent>
<xsd:extension base="xsd:float">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="formattedvalue" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CrmMoney">
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="formattedvalue" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="CrmNumber">
<xsd:simpleContent>
<xsd:extension base="xsd:int">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="formattedvalue" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="EntityNameReference">
<xsd:simpleContent>
<xsd:extension base="xsd:string" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Lookup">
<xsd:simpleContent>
<xsd:extension base="core:Reference" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Owner">
<xsd:simpleContent>
<xsd:extension base="core:Reference" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Customer">
<xsd:simpleContent>
<xsd:extension base="core:Reference" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="PickList">
<xsd:simpleContent>
<xsd:extension base="xsd:int">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="name" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Reference">
<xsd:simpleContent>
<xsd:extension base="types:guid">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="name" type="xsd:string" use="optional" />
<xsd:attribute name="type" type="xsd:string" use="required" />
<xsd:attribute name="dsc" type="xsd:int" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Status">
<xsd:simpleContent>
<xsd:extension base="xsd:int">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
<xsd:attribute name="name" type="xsd:string" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="Key">
<xsd:simpleContent>
<xsd:extension base="types:guid" />
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="State">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
<xsd:complexType name="uniqueidentifier">
<xsd:simpleContent>
<xsd:extension base="types:guid">
<xsd:attribute name="IsNull" type="xsd:boolean" use="optional" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="activityparty">
<xsd:complexContent mixed="false">
<xsd:extension base="core:BusinessEntity">
<xsd:sequence>
<xsd:element name="activityid" type="core:Lookup" />
<xsd:element name="activitypartyid" type="core:Key" />
<xsd:element name="addressused" type="xsd:string" />
<xsd:element name="donotemail" type="core:CrmBoolean" />
<xsd:element name="donotfax" type="core:CrmBoolean" />
<xsd:element name="effort" type="core:CrmFloat" />
<xsd:element name="participationtypemask" type="core:PickList" />
<xsd:element name="partyid" type="core:Lookup" />
<xsd:element name="resourcespecid" type="core:Lookup" />
<xsd:element name="scheduledend" type="core:CrmDateTime" />
<xsd:element name="scheduledstart" type="core:CrmDateTime" />
</xsd:sequence>
<xsd:attribute name="participationtype" type="xsd:int" use="required" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="partyList">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="unbounded" name="activityparty" type="core:activityparty" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="partyItem">
<xsd:sequence>
<xsd:element minOccurs="1" maxOccurs="1" name="activityparty" type="core:activityparty" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
================================ types
<?xml version="1.0"?>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/"">http://microsoft.com/wsdl/types/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">">http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
=======================================================================
File: Types.xsd

Summary: Common types used across all CRM entities

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This file is part of the Microsoft CRM V3.0 SDK Code Samples.

Copyright (C) Microsoft Corporation. All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation. See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
=======================================================================
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType name="guid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
April 11, 2007 9:07 AM
 

sss said:

ssssss
April 27, 2007 8:08 AM
 

account_types.xsd missing said:

hi Tareq,
there is one more xsd left out which is account_types.xsd.
Do you have that available? I would appreciate if you could kindly share it.
Thanks
Anuj
July 12, 2007 12:39 PM
 

Deepak N said:

Am not able to obtain the schema for entities as i don't see the "XSD" folder in SDK folder as mentioned above,using the URL "yourcrmserver/.../entity.aspx in MS CRM 4.0 could you please help ?

December 9, 2008 9:34 AM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2014 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register