Skip to main content
Skip table of contents

MSCRM

MSCRM helps to connect to the Microsoft Dynamics CRM web services and perform operations on an entity. The component supports both Microsoft Dynamics CRM on-premises deployment and Microsoft Dynamics CRM Online.

Points to note

  • MSCRM runs only on Windows Platform.
  • MSCRM requires Microsoft .NET Framework 4.0 or above installed on the machine where peer server is running.

Configuration

Below is the MSCRM Configuration Property Sheet with the Expert Properties (for additional attributes) enabled.


Figure 1: MSCRM Configuration Property Sheet

Error Configuration

Error Handling Configuration

Details of these configurations can be referred in Error Handling section.

Threadpool Configuration

This property is used when there is a need to process messages in parallel within the component, still maintaining the sequence from the external perspective. 

  • This needs to be used only in such circumstances.
  • If sequential processing is not required, please use sessions on the input port.

Click the Threadpool Configuration ellipsis button to configure the Threadpool Configuration properties.


Figure 2: Threadpool Configuration

Enable Thread Pool

Enable this option to configure the properties that appear as below.

Pool Size

Number of requests to be processed in parallel within the component. Default value is '1'.

Batch Eviction Interval (in ms)

Time in milliseconds after which the threads are evicted in case of inactivity. New threads are created in place of evicted threads when new requests are received. Default value is '1000'.

WSDL Configuration

Load WSDL From

Source for Organization Service WSDL can be configured here. It can be a File or a valid WSDL URL which can be found by navigating to the following location in the UI of CRM:
Settings > Customizations > Developer Resources > Service Endpoints > Organization Service

WSDL file can either be downloaded or the URL of WSDL can be found by clicking on the link of service. These details can be provided in the below options (WSDL URL and WSDL File) as they appear with respect to the selection of "URL" or "File" options respectively.

WSDL URL

Organization Service URL to be invoked. This property is visible when Load WSDL From is selected as "URL".

WSDL File

The Organization Service WSDL file location can be configured here when Load WSDL From is selected as "File".

WebService Operation

The operation to be invoked can be selected here. To select an operation, click the ellipsis button against this property. Supported operations are Create, Retrieve, Delete, Update, RetrieveMultiple, Execute, Associate, and Disassociate.

Target Namespace

Target Namespace for generated input and output schemas. This is an expert property.

Use MetaData File?

Loads entity scheme using OData Metadata file.

The configuration properties that will be available after enabling this property are described below.


Figure 3: MetaData configuration properties

MetaData File

Provide the path to the OData Metadata file of the Instance Web API downloaded from Developer resources.

Selected Entity

Name of the entity on which operations have to be performed.

MetaData Namespace

Namespace of Metadata XML root element.

Selected Attributes

List of attributes that has to be fetched during Retrieve and RetrieveMultiple operations.

Fetch Query

To configure query to perform fetching multiple records. All the elements are part of the 'AND' clause. Multiple elements can be grouped to 'OR, 'AND' clause by selecting and/or column continuously.

Server Configuration

Authentication Type

The type of authentication used, depends on the type of deployment : Microsoft Dynamics CRM Online or Microsoft Dynamics CRM

MS CRM Server URL

The URL to the Microsoft Dynamics CRM server. The URL can be HTTP or HTTPS and the port is optional if it is HTTP over port 80 or HTTPS over port 443.

The server URL is typically in the format as below:

http://crm-server:port/organization-name

And for Microsoft Dynamics CRM Online:

https://organization-name.crm.dynamics.com

In both cases, organization name is required.

Domain Name

The domain that will verify user credentials.

This property is visible only when Authentication Type is "On-Premises using Active Directory"

User Name

The user's identification name associated with the credentials.

Password

The password for the user name associated with the credentials.

Input and Output Schema

Schemas are set on the input and output ports after finishing the CPS based on the types defined in WSDL for the operation selected.

Create

Schema structure set on the input port for Create operation is shown below and input request should confirm to this schema


Figure 4: Schema structure set on the input port for Create operation

Sample Input

Sample Input to create a new Contact entity is shown below.

XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Create/Input" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns4="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
   <ns2:Create xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entity>
         <ns3:Attributes xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns3:KeyValuePairOfstringanyType>
               <ns4:key>firstname</ns4:key>
               <ns4:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">Testfirst</ns4:value>
            </ns3:KeyValuePairOfstringanyType>
            <ns3:KeyValuePairOfstringanyType>
               <ns4:key>lastname</ns4:key>
               <ns4:value xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">Testlast</ns4:value>
            </ns3:KeyValuePairOfstringanyType>
            <ns3:KeyValuePairOfstringanyType>
               <ns4:key>address2_freighttermscode</ns4:key>
               <ns4:value xmlns:b="http://www.w3.org/2001/XMLSchema" xmlns:ns5="http://schemas.microsoft.com/xrm/2011/Contracts" i:type="ns5:OptionSetValue">
                  <ns5:Value>1</ns5:Value>
               </ns4:value>
            </ns3:KeyValuePairOfstringanyType>
         </ns3:Attributes>
         <ns3:LogicalName xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">contact</ns3:LogicalName>
      </ns2:entity>
   </ns2:Create>
</ns1:Body>
Sample Output

On executing the Sample Input above, new Contact with First Name User, Last Name Name and Freight Terms FOB will be created. Here entity name must be provided in the LogicalName field and properties of the entity has to be provided as key-value pairs under Attributes element. The entity name and field key name and types can be found by navigating to the following location in the UI:

Settings > Customizations > Customize the System

Under Solution explorer > Components > Entities, all the entities present in the system will be listed. Upon selecting the Contact entity, under Entity Definition in the General tab contains Name field whose value should be provided in the LogicalName element of the input XML. Upon selecting the Fields under Contact category, all the fields will be listed. Name of corresponding field should be provided in key-value pairs under Attributes element of input XML. Type of each field also is listed here under Type column.

Guid of the newly created entity record will be returned as output from the component as shown below.

XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Create/Output">
   <ns2:CreateResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:CreateResult>8fe2c806-6acf-e311-9554-d89d6765b238</ns2:CreateResult>
   </ns2:CreateResponse>
</ns1:Body>
Retrieve

This operation takes the GUID of an entity as input and retrieves an instance (record) of an entity. Either the complete fields or specific fields of the entity can be retrieved depending on the value of the field AllColumns. In order to retrieve all fields of the contact, AllColumns should be set to true. To retrieve only particular fields, AllColumns is set to false and the field key names are specified in the columns element. The guid of the entity has to specified in the id field.

To fetch UID from the Microsoft CRM server execute the following steps:

  • Click the record name on the home screen of the entity in web browser.
  • Click the button on the right corner of the display.
  • Select id from the address bar.

Input schema of Retrieve operation is shown below, the input request must confirm with this schema.


Figure 5: Input schema of Retrieve operation

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="Retrieve/Input">
   <ns2:Retrieve xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entityName>contact</ns2:entityName>
      <ns2:id>B16347F7-50BA-E311-BE1A-D89D67642EB0</ns2:id>
      <ns2:columnSet>
         <ns3:AllColumns xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">false</ns3:AllColumns>
         <ns3:Columns xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns4:string xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays">firstname</ns4:string>
         </ns3:Columns>
      </ns2:columnSet>
   </ns2:Retrieve>
</ns1:Body>

On executing the above request, the firstname of specified guid will be retrieved and displayed.

Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="Retrieve/Output">
   <ns2:RetrieveResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <RetrieveResult xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:d1p1="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <d1p1:Attributes xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
            <d1p1:KeyValuePairOfstringanyType>
               <d2p1:key>firstname</d2p1:key>
               <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Testfirst</d2p1:value>
            </d1p1:KeyValuePairOfstringanyType>
            <d1p1:KeyValuePairOfstringanyType>
               <d2p1:key>contactid</d2p1:key>
               <d2p1:value xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d4p1:guid">b16347f7-50ba-e311-be1a-d89d67642eb0</d2p1:value>
            </d1p1:KeyValuePairOfstringanyType>
         </d1p1:Attributes>
         <d1p1:EntityState i:nil="true" />
         <d1p1:FormattedValues xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
         <d1p1:Id>b16347f7-50ba-e311-be1a-d89d67642eb0</d1p1:Id>
         <d1p1:LogicalName>contact</d1p1:LogicalName>
         <d1p1:RelatedEntities xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      </RetrieveResult>
   </ns2:RetrieveResponse>
</ns1:Body>

The field and the value is delivered as key value pair in the output as shown above

Retrive Multiple

Input schema of Retrieve Multiple operation is shown below, the input given must confirm with this schema.


Figure 6: Input schema of Retrieve Multiple operation

This operation is used to retrieve a collection of records. The query can be specified using Fetch XML query. The entries which satisfy all the conditions are retrieved. The fetch input XML can be generated from CRM UI as explained below.

To fetch the input XML from the CRM UI:

  1. In the MS CRM home page of the entity, click the Advanced Find tab.
    A new find pop-up window gets opened.


    Figure 7: Advanced Find option
     
  2. Select contacts in the look for field and choose the field to be selected as the search criteria.
  3. Click on Download Fetch XML and save the file.
  4. Open the saved file to find the input XMLof fetch element
Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/RetrieveMultiple/Input">
   <ns1:FetchExpression>
      <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
         <entity name="contact">
            <attribute name="fullname" />
            <filter type="and">
               <condition attribute="firstname" operator="eq" value="testing" />
            </filter>
         </entity>
      </fetch>
   </ns1:FetchExpression>
</ns1:Body>

Enter the attribute, operation and value in the "condition" Row. Any additional attributes can also be entered in the field attribute name.

Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/RetrieveMultiple/Output">
   <ns2:RetrieveMultipleResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <RetrieveMultipleResult xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:d1p1="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <d1p1:Entities>
            <d1p1:Entity>
               <d1p1:Attributes xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
                  <d1p1:KeyValuePairOfstringanyType>
                     <d4p1:key>fullname</d4p1:key>
                     <d4p1:value xmlns:d6p1="http://www.w3.org/2001/XMLSchema" i:type="d6p1:string">testing user</d4p1:value>
                  </d1p1:KeyValuePairOfstringanyType>
                  <d1p1:KeyValuePairOfstringanyType>
                     <d4p1:key>contactid</d4p1:key>
                     <d4p1:value xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/" i:type="d6p1:guid">d92f59af-8fcf-e311-ac8b-d89d67642eb0</d4p1:value>
                  </d1p1:KeyValuePairOfstringanyType>
               </d1p1:Attributes>
               <d1p1:EntityState i:nil="true" />
               <d1p1:FormattedValues xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
               <d1p1:Id>d92f59af-8fcf-e311-ac8b-d89d67642eb0</d1p1:Id>
               <d1p1:LogicalName>contact</d1p1:LogicalName>
               <d1p1:RelatedEntities xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
            </d1p1:Entity>
         </d1p1:Entities>
         <d1p1:EntityName>contact</d1p1:EntityName>
         <d1p1:MinActiveRowVersion>-1</d1p1:MinActiveRowVersion>
         <d1p1:MoreRecords>false</d1p1:MoreRecords>
         <d1p1:PagingCookie>
            <cookie page="1">
               <contactid last="{D92F59AF-8FCF-E311-AC8B-D89D67642EB0}" first="{D92F59AF-8FCF-E311-AC8B-D89D67642EB0}" />
            </cookie>
         </d1p1:PagingCookie>
         <d1p1:TotalRecordCount>-1</d1p1:TotalRecordCount>
         <d1p1:TotalRecordCountLimitExceeded>false</d1p1:TotalRecordCountLimitExceeded>
      </RetrieveMultipleResult>
   </ns2:RetrieveMultipleResponse>
</ns1:Body>

All the elements after matching fields with the given condition are displayed. For instance, in the output above all elements with First Name = TestFirst are displayed.

Update

Input schema of update operation is shown below, the input given must confirm with this schema.


Figure 8: Input schema of update operation

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Update/Input" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <ns2:Update xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entity>
         <ns3:Attributes xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns3:KeyValuePairOfstringanyType>
               <ns4:key xmlns:ns4="http://schemas.datacontract.org/2004/07/System.Collections.Generic">lastname</ns4:key>
               <ns4:value xmlns:ns4="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:b="http://www.w3.org/2001/XMLSchema" i:type="b:string">updated</ns4:value>
            </ns3:KeyValuePairOfstringanyType>
         </ns3:Attributes>
         <ns3:EntityState xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">Changed</ns3:EntityState>
         <ns3:Id xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">ac0f1620-b9a3-e311-a869-b499bab329d6</ns3:Id>
         <ns3:LogicalName xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">contact</ns3:LogicalName>
      </ns2:entity>
   </ns2:Update>
</ns1:Body>

On executing the above request, Contact with First Name, Last Name Name will be updated . Here entity name must be provided in LogicalName field and the properties of entity has to be provided as key-value pairs under the Attributes element. The entity name and the field key name and types can be found by navigating to the following location in the UI.
Settings > Customizations > Customize the System

Under Solution explorer > Components > Entities, all the entities present in the system will be listed. Upon selecting the Contact entity, under Entity Definition in General tab contains Name field whose value should be provided in the LogicalName element of the input XML. On selecting the Fields under Contact category, all the fields will be listed. Name of the corresponding field should be provided in key-value pairs under Attributes element of the input XML. Type of each field also gets listed here under the Type column.

Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Update/Output">
   <ns2:UpdateResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services" />
</ns1:Body>
Delete

This operation deletes an entity. GUID of the contact to be deleted and the type of entity has to be specified by entityName.


Figure 9:  Type of entity specified by entityName

Schema structure set on the input port for Delete operation is shown below and input request should confirm to this schema.

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Delete/Input">
   <ns2:Delete xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entityName>contact</ns2:entityName>
      <ns2:id>ac089213-a1ce-e311-ac8b-d89d67642eb0</ns2:id>
   </ns2:Delete>
</ns1:Body>

On executing the above request, new Contact with the given id will get deleted. Here entityName must be contact and the id must be provided in the appropriate field, user id can be extracted using the steps described above.

Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Delete/Output">
   <ns2:DeleteResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services" />
</ns1:Body>
Associate

This operation creates a link between two records that participate in a relationship. Relationship name has to be provided under SchemaName in the input. It can be found by navigating to the following location in the UI.

Settings > Customizations > Customize the System

Under Solution explorer > Components > Entities, all the entities present in the system will be listed. Upon selecting the Contact entity and the relationships tab, all relationships for the entity are listed and schemaName can be found for each of these relationships.

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xr/2011/Contracts/Associate/Input">
   <ns2:Associate xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entityName>contact</ns2:entityName>
      <ns2:entityId>421f797d-8bc4-e311-8986-d89d6765b238</ns2:entityId>
      <ns2:relationship>
         <ns3:PrimaryEntityRole xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">Referenced</ns3:PrimaryEntityRole>
         <ns3:SchemaName xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">account_primary_contact</ns3:SchemaName>
      </ns2:relationship>
      <ns2:relatedEntities>
         <ns3:EntityReference xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns3:Id>C2752D1A-06B4-E311-BF0E-D89D6765B238</ns3:Id>
            <ns3:LogicalName>account</ns3:LogicalName>
            <ns3:Name>primarycontactid</ns3:Name>
         </ns3:EntityReference>
      </ns2:relatedEntities>
   </ns2:Associate>
</ns1:Body>
Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xr/2011/Contracts/Associate/Output">
   <ns2:AssociateResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services" />
</ns1:Body>
Dissociate

This operation deletes link between two records. Relationship name has to be provided under SchemaName in the input. It can be found by navigating to the following location in the UI.

Settings > Customizations > Customize the System

Under Solution explorer > Components > Entities, all the entities present in the system will be listed. Upon selecting the Contact entity and relationships tab, all relationships for the entity are listed and schemaName can be found for each of these relationship.

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Disassociate/Input">
   <ns2:Disassociate xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entityName>contact</ns2:entityName>
      <ns2:entityId>421f797d-8bc4-e311-8986-d89d6765b238</ns2:entityId>
      <ns2:relationship>
         <ns3:PrimaryEntityRole xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">Referenced</ns3:PrimaryEntityRole>
         <ns3:SchemaName xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">account_primary_contact</ns3:SchemaName>
      </ns2:relationship>
      <ns2:relatedEntities>
         <ns3:EntityReference xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns3:Id>C2752D1A-06B4-E311-BF0E-D89D6765B238</ns3:Id>
            <ns3:LogicalName>account</ns3:LogicalName>
            <ns3:Name>primarycontactid</ns3:Name>
         </ns3:EntityReference>
      </ns2:relatedEntities>
   </ns2:Disassociate>
</ns1:Body>
Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Disassociate/Output">
   <ns2:DisassociateResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services" />
</ns1:Body>
Execute

This operation executes a message in the form of a request, and returns a response. This includes common processing like create and delete of data records and metadata, or it can be specialized processing such as import or detect duplicates. For example with the below input request, MSCRM version being used currently can be known by invoking the operation.

Sample Input
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="Update/Input">
   <ns2:Execute xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:request>
         <ns3:Parameters xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts" />
         <ns3:RequestId xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">B16347F7-50BA-E311-BE1A-D89D67642EB0</ns3:RequestId>
         <ns3:RequestName xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">RetrieveVersion</ns3:RequestName>
      </ns2:request>
   </ns2:Execute>
</ns1:Body>
Sample Output
XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="Update/Output">
   <ns2:ExecuteResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ExecuteResult xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:d1p1="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
         <d1p1:ResponseName>RetrieveVersion</d1p1:ResponseName>
         <d1p1:Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
            <d1p1:KeyValuePairOfstringanyType>
               <d2p1:key>Version</d2p1:key>
               <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">6.0.2.50</d2p1:value>
            </d1p1:KeyValuePairOfstringanyType>
         </d1p1:Results>
      </ExecuteResult>
   </ns2:ExecuteResponse>
</ns1:Body>

The current version of MSCRM is given as output in the field value. (6.0.2.50)

Functional Demonstration

Copy a user record from one CRM to another by retrieving and subsequently creating it into another MSCRM.


Figure 10: Event Process demonstrating the function of the component

Configure two components referring to the sections Retrive and Create and use the sample input shown below to retrieve a users details from one crm instance and use the same to create an entry in another crm instance using the details retrieved.

Sample Input
XML
 <?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="Retrieve/Input">
   <ns2:Retrieve xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:entityName>contact</ns2:entityName>
      <ns2:id>B16347F7-50BA-E311-BE1A-D89D67642EB0</ns2:id>
      <ns2:columnSet>
         <ns3:AllColumns xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">false</ns3:AllColumns>
         <ns3:Columns xmlns:ns3="http://schemas.microsoft.com/xrm/2011/Contracts">
            <ns4:string xmlns:ns4="http://schemas.microsoft.com/2003/10/Serialization/Arrays">firstname</ns4:string>
         </ns3:Columns>
      </ns2:columnSet>
   </ns2:Retrieve>
</ns1:Body>
Sample Output

A new user is created, its GUID is output on the display.

XML
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Body xmlns:ns1="http://schemas.microsoft.com/xrm/2011/Contracts/Create/Output">
   <ns2:CreateResponse xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
      <ns2:CreateResult>8fe2c806-6acf-e311-9554-d89d6765b238</ns2:CreateResult>
   </ns2:CreateResponse>
</ns1:Body>


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.