none
How to add item/entity to a queue dynamics crm 2011 using SOAP endpoint

    Question

  • Hello All,

    How can I add an item/entity to a queue in dynamics crm 2011 programmatically using SOAP calls. Any help will greatly appreciated.
    Friday, September 20, 2013 2:28 PM

Answers

  • The SOAP request would look like this:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Body>
        <Execute xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
          <request i:type="b:AddToQueueRequest" xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:b="http://schemas.microsoft.com/crm/2011/Contracts">
            <a:Parameters xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
              <a:KeyValuePairOfstringanyType>
                <c:key>Target</c:key>
                <c:value i:type="a:EntityReference">
                  <a:Id>3b5e1b86-8ef8-e211-864b-b4b52f567d08</a:Id>
                  <a:LogicalName>incident</a:LogicalName>
                  <a:Name i:nil="true" />
                </c:value>
              </a:KeyValuePairOfstringanyType>
              <a:KeyValuePairOfstringanyType>
                <c:key>DestinationQueueId</c:key>
                <c:value i:type="d:guid" xmlns:d="http://schemas.microsoft.com/2003/10/Serialization/">23a055f7-c8e7-e211-8a28-b4b52f567d08</c:value>
              </a:KeyValuePairOfstringanyType>
            </a:Parameters>
            <a:RequestId i:nil="true" />
            <a:RequestName>AddToQueue</a:RequestName>
          </request>
        </Execute>
      </s:Body>
    </s:Envelope>


    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Friday, September 20, 2013 2:52 PM