<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2011 rel. 3 sp1 (http://www.altova.com) by N. van der Meer (TNT Post Shared Services B.V. ICT Mail) -->
<!--

major/ minor versie:	1.0
datum productie:		13-12-2011



   Schema agency: 	Open Applications Group 


   OAGIS® Revision:    OAGIS Platform 1_2  
   Date:               05 May 2011 
   Copyright 1997-2011, All Rights Reserved 

  	
   Copyright (C) Open Applications Group (1997-2011). All Rights Reserved.
  
  
   This is an OAGIS® BOD XML Schema (XSD) Definition.

   License information for this file is provided in the file **OAGi License Agreement.txt** that is provided with this download package.

   For support, more information, or to report implementation bugs, please contact the Open Applications Group at oagis@openapplications.org.
    
   XML Schema 
     
    Name: /OAGi-BPI-Platform/org_openapplications_platform/1_2/Common/OAGi/Components/CRMComponents.xsd
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cr1="urn:postnl/mail/crmcomponents/1" xmlns:fi1="urn:postnl/mail/fields1" xmlns:me1="urn:postnl/mail/meta/1" xmlns:co1="urn:postnl/mail/components/1" targetNamespace="urn:postnl/mail/crmcomponents/1" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="urn:postnl/mail/fields1" schemaLocation="Fields1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/meta/1" schemaLocation="Meta1.xsd"/>
	<xsd:import namespace="urn:postnl/mail/components/1" schemaLocation="Components1.xsd"/>
	<xsd:complexType name="CRMHeaderType">
		<xsd:complexContent>
			<xsd:extension base="co1:StatusEnabledHeaderType">
				<xsd:sequence>
					<xsd:element ref="fi1:Name" minOccurs="0"/>
					<xsd:element ref="fi1:CloseReasonCode" minOccurs="0"/>
					<xsd:element ref="co1:Interests" minOccurs="0"/>
					<xsd:element ref="fi1:TotalAmount" minOccurs="0"/>
					<xsd:element ref="fi1:BudgetedAmount" minOccurs="0"/>
					<xsd:element ref="fi1:ReceivedCode" minOccurs="0"/>
					<xsd:element ref="fi1:SourceID" minOccurs="0"/>
					<xsd:element ref="co1:CustomerParty" minOccurs="0"/>
					<xsd:element ref="co1:OwnerParty" minOccurs="0"/>
					<xsd:element ref="co1:SalesContact" minOccurs="0"/>
					<xsd:element ref="co1:CompetitorParty" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="cr1:MarketingProgram" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:QuoteReference" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="cr1:SalesActivity" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="cr1:SalesTask" minOccurs="0" maxOccurs="unbounded"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="CRMLineType">
		<xsd:complexContent>
			<xsd:extension base="co1:StatusEnabledLineType">
				<xsd:sequence>
					<xsd:element ref="co1:Item" minOccurs="0"/>
					<xsd:element ref="fi1:Amount" minOccurs="0"/>
					<xsd:element ref="fi1:Quantity" minOccurs="0"/>
					<xsd:element ref="co1:CompetitorParty" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="co1:CompetingItem" minOccurs="0" maxOccurs="unbounded"/>
					<xsd:element ref="cr1:MarketingProgram" minOccurs="0" maxOccurs="unbounded"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="SalesActivityType">
		<xsd:complexContent>
			<xsd:extension base="cr1:SalesActivityBaseType">
				<xsd:sequence>
					<xsd:element ref="fi1:UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:complexType name="SalesActivityBaseType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">Captures the Sales Activity.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element ref="fi1:ID" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="cr1:SalesActivityType" minOccurs="0"/>
			<xsd:element ref="fi1:DateTime" minOccurs="0"/>
			<xsd:element ref="fi1:MaterialRequested" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="fi1:MaterialSent" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="fi1:EmailResultCode" minOccurs="0"/>
			<xsd:element ref="fi1:RequestContactIndicator" minOccurs="0"/>
			<xsd:element ref="fi1:Result" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:group ref="me1:FreeFormTextGroup" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="type" type="fi1:SalesActivityCodeContentType" use="optional"/>
	</xsd:complexType>
	<xsd:element name="SalesActivity" type="cr1:SalesActivityType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">An associated sales activity as a result of the lead/opportunity.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SalesTask" type="cr1:SalesTaskType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">This will tell all the associated Tasks which have been associated with this Opportunity. It should tell who created it, who owns it, what the status is, task Priority, Planned Start and End Date</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="SalesTaskType">
		<xsd:sequence>
			<xsd:element ref="fi1:ID" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="cr1:SalesTaskType" minOccurs="0"/>
			<xsd:element ref="fi1:Subject" minOccurs="0"/>
			<xsd:element ref="fi1:PriorityCode" minOccurs="0"/>
			<xsd:group ref="me1:FreeFormTextGroup" minOccurs="0"/>
			<xsd:element ref="co1:Status" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Task status such as in plannig, in prorgress, completed</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="co1:CategoryCodes" minOccurs="0"/>
			<xsd:element ref="fi1:PrivateIndicator" minOccurs="0"/>
			<xsd:element ref="fi1:ParentTaskID" minOccurs="0"/>
			<xsd:element ref="fi1:EscalationLevelCode" minOccurs="0"/>
			<xsd:element ref="co1:PlannedTimePeriod" minOccurs="0"/>
			<xsd:element ref="co1:ScheduledTimePeriod" minOccurs="0"/>
			<xsd:element ref="co1:ActualTimePeriod" minOccurs="0"/>
			<xsd:element ref="co1:OwnerParty" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Genreally the creator of task is the Owner, although in some cases the ownership could be transferred too.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="co1:AssignedToContact" minOccurs="0"/>
			<xsd:element ref="fi1:AssigneeType" minOccurs="0"/>
			<xsd:element ref="co1:AssigneeStatus" minOccurs="0"/>
			<xsd:element ref="fi1:SourceID" minOccurs="0"/>
			<xsd:element ref="co1:CustomerParty" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">The task is about what type of Customer "Organization", "Person" or "RelationShips" etc. ??? This should be a Base type</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="co1:SalesLeadReference" minOccurs="0"/>
			<xsd:element ref="co1:OpportunityReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="co1:ServiceRequestReference" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="fi1:CompletionPercent" minOccurs="0"/>
			<xsd:element ref="fi1:CompletedDuration" minOccurs="0"/>
			<xsd:element ref="fi1:PlannedEffortDuration" minOccurs="0"/>
			<xsd:element ref="fi1:ActualEffortDuration" minOccurs="0"/>
			<xsd:element ref="fi1:RepeatingFrequencyCode" minOccurs="0"/>
			<xsd:element ref="co1:Contact" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:group ref="co1:ReferencesGroup" minOccurs="0"/>
			<xsd:element ref="fi1:UserArea" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="type" type="fi1:SalesTaskCodeContentType" use="optional"/>
	</xsd:complexType>
	<xsd:complexType name="AppointmentBaseType">
		<xsd:sequence>
			<xsd:element ref="fi1:DateTime" minOccurs="0"/>
			<xsd:element ref="co1:Location" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Location of the appointment... For example: Office; Home</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:group ref="me1:FreeFormTextGroup" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="AppointmentType">
		<xsd:complexContent>
			<xsd:extension base="cr1:AppointmentBaseType">
				<xsd:sequence>
					<xsd:element ref="fi1:UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="Appointment" type="cr1:AppointmentType"/>
	<xsd:element name="Financing" type="cr1:FinancingType"/>
	<xsd:complexType name="FinancingBaseType">
		<xsd:sequence>
			<xsd:element ref="fi1:Type" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation source="http://www.openapplications.org/platform/1">Code type specifing the type of Financing.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element ref="fi1:PaymentAmount" minOccurs="0"/>
			<xsd:element ref="fi1:BalanceAmount" minOccurs="0"/>
			<xsd:element ref="fi1:FinalAmount" minOccurs="0"/>
			<xsd:element ref="fi1:ResidualAmount" minOccurs="0"/>
			<xsd:element ref="co1:Term" minOccurs="0"/>
			<xsd:element ref="fi1:MaturityDateTime" minOccurs="0"/>
			<xsd:element ref="co1:FinancialParty" minOccurs="0"/>
			<xsd:element ref="fi1:DownPaymentAmount" minOccurs="0"/>
			<xsd:element ref="fi1:TotalAmount" minOccurs="0"/>
			<xsd:element ref="co1:PaymentAuthorization" minOccurs="0"/>
			<xsd:element ref="fi1:CreditRatingCode" minOccurs="0"/>
		</xsd:sequence>
		<xsd:attribute name="type" type="fi1:NormalizedStringType"/>
	</xsd:complexType>
	<xsd:complexType name="FinancingType">
		<xsd:complexContent>
			<xsd:extension base="cr1:FinancingBaseType">
				<xsd:sequence>
					<xsd:element ref="fi1:UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="MarketingProgram" type="cr1:MarketingProgramType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">Indicates the Marketing Campaign that the Lead is eligible for</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="MarketingProgramBaseType">
		<xsd:sequence>
			<xsd:element ref="fi1:ID" minOccurs="0"/>
			<xsd:group ref="me1:FreeFormTextGroup" minOccurs="0"/>
			<xsd:element ref="fi1:OfferDescription" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element ref="fi1:OpportunityType" minOccurs="0"/>
			<xsd:element ref="fi1:OpportunityMethodCode" minOccurs="0"/>
			<xsd:element ref="co1:Discount" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="MarketingProgramType">
		<xsd:complexContent>
			<xsd:extension base="cr1:MarketingProgramBaseType">
				<xsd:sequence>
					<xsd:element ref="fi1:UserArea" minOccurs="0"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="SalesActivityType" type="fi1:SalesActivityCodeType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">Code type specifing the type of Sales Activity.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="SalesTaskType" type="fi1:SalesTaskCodeType">
		<xsd:annotation>
			<xsd:documentation source="http://www.openapplications.org/platform/1">Code type specifing the type of Sales Task.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
</xsd:schema>
