Asked by:
Opportunity Won plus UpdateRequest

Question
-
Is is possible to submit an UpdateRequest and an WinOpportunityRequest in the same transaction?Monday, May 22, 2017 4:27 PM
All replies
-
- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, May 22, 2017 5:12 PM
Monday, May 22, 2017 5:12 PMModerator -
Andrii,
Thanks for the reply, however, when I try ExecuteTransaction i'm now getting an error message that says...
Failed to connect/reconnect: Work Descriptor. Root Exception was: Required field 'OpportunityClose' is missing. Type: class com.microsoft.schemas.xrm._2011.contracts.services.IOrganizationServiceExecuteOrganizationServiceFaultFaultFaultMessage
However, I am passing the OpportunityClose as an entity. Then I also get this from the soap fault.
Failed to connect/reconnect: Work Descriptor. Root Exception was: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.. Type: class org.apache.cxf.binding.soap.SoapFault
Tuesday, May 23, 2017 12:46 PM -
Andrii,
Thanks for the reply, however, when I try ExecuteTransaction i'm now getting an error message that says...
Failed to connect/reconnect: Work Descriptor. Root Exception was: Required field 'OpportunityClose' is missing. Type: class com.microsoft.schemas.xrm._2011.contracts.services.IOrganizationServiceExecuteOrganizationServiceFaultFaultFaultMessage
However, I am passing the OpportunityClose as an entity. Then I also get this from the soap fault.
Failed to connect/reconnect: Work Descriptor. Root Exception was: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.. Type: class org.apache.cxf.binding.soap.SoapFault
Tuesday, May 23, 2017 12:46 PM -
Provide your code please.
Dynamics CRM/Business Solutions MVP
Read My blogTuesday, May 23, 2017 12:54 PMModerator -
Here is the transaction that I'm sending to get the error message above. I had to split it up due to forum limitations.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:29c13f9c-7066-4515-acb0-1f9706a4890d</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">https://brookdale.crm.dynamics.com/XRMServices/2011/Organization.svc</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">
<wsu:Timestamp wsu:Id="TS-58BE35A25B423A8CAD149548376588431">
<wsu:Created>2017-05-22T20:09:25.884Z</wsu:Created>
<wsu:Expires>2017-05-22T20:14:25.884Z</wsu:Expires>
</wsu:Timestamp>
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="Assertion0" Type="http://www.w3.org/2001/04/xmlenc#Element">
</EncryptedData>
</wsse:Security>
</soap:Header>
<soap:Body>
<Execute xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns10="http://schemas.microsoft.com/xrm/2011/Metadata/Query" xmlns:ns11="http://schemas.microsoft.com/crm/2011/Contracts" xmlns:ns12="http://schemas.microsoft.com/xrm/2014/Contracts" xmlns:ns13="http://schemas.datacontract.org/2004/07/Microsoft.Crm.Sdk.Messages" xmlns:ns14="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/xrm/7.1/Contracts" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns6="http://schemas.microsoft.com/xrm/2012/Contracts" xmlns:ns7="http://schemas.microsoft.com/xrm/2011/Metadata" xmlns:ns8="http://schemas.microsoft.com/xrm/2013/Metadata" xmlns:ns9="http://schemas.microsoft.com/xrm/7.1/Metadata">
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:ExecuteTransactionRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
Tuesday, May 23, 2017 2:46 PM -
Here is the transaction that I'm sending to get the error message above. I had to split it up due to forum limitations.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:29c13f9c-7066-4515-acb0-1f9706a4890d</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">https://brookdale.crm.dynamics.com/XRMServices/2011/Organization.svc</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">
<wsu:Timestamp wsu:Id="TS-58BE35A25B423A8CAD149548376588431">
<wsu:Created>2017-05-22T20:09:25.884Z</wsu:Created>
<wsu:Expires>2017-05-22T20:14:25.884Z</wsu:Expires>
</wsu:Timestamp>
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="Assertion0" Type="http://www.w3.org/2001/04/xmlenc#Element">
</EncryptedData>
</wsse:Security>
</soap:Header>
<soap:Body>
<Execute xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns10="http://schemas.microsoft.com/xrm/2011/Metadata/Query" xmlns:ns11="http://schemas.microsoft.com/crm/2011/Contracts" xmlns:ns12="http://schemas.microsoft.com/xrm/2014/Contracts" xmlns:ns13="http://schemas.datacontract.org/2004/07/Microsoft.Crm.Sdk.Messages" xmlns:ns14="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/xrm/7.1/Contracts" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns6="http://schemas.microsoft.com/xrm/2012/Contracts" xmlns:ns7="http://schemas.microsoft.com/xrm/2011/Metadata" xmlns:ns8="http://schemas.microsoft.com/xrm/2013/Metadata" xmlns:ns9="http://schemas.microsoft.com/xrm/7.1/Metadata">
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:ExecuteTransactionRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
Tuesday, May 23, 2017 2:50 PM -
Andrii,
I tried several time to post my payload to this site, but I keep getting 502 Web server gateway or proxy server errors. I also notice there is no way to attach anything to this thread.
Tuesday, May 23, 2017 2:53 PM -
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:29c13f9c-7066-4515-acb0-1f9706a4890d</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">https://brookdale.crm.dynamics.com/XRMServices/2011/Organization.svc</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soap:mustUnderstand="true">
<wsu:Timestamp wsu:Id="TS-58BE35A25B423A8CAD149548376588431">
<wsu:Created>2017-05-22T20:09:25.884Z</wsu:Created>
<wsu:Expires>2017-05-22T20:14:25.884Z</wsu:Expires>
</wsu:Timestamp>
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Id="Assertion0" Type="http://www.w3.org/2001/04/xmlenc#Element">
</EncryptedData>
</wsse:Security>
</soap:Header>Tuesday, May 23, 2017 2:53 PM -
<soap:Body>
<Execute xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:ns10="http://schemas.microsoft.com/xrm/2011/Metadata/Query" xmlns:ns11="http://schemas.microsoft.com/crm/2011/Contracts" xmlns:ns12="http://schemas.microsoft.com/xrm/2014/Contracts" xmlns:ns13="http://schemas.datacontract.org/2004/07/Microsoft.Crm.Sdk.Messages" xmlns:ns14="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:ns2="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:ns3="http://schemas.datacontract.org/2004/07/System.Collections.Generic" xmlns:ns4="http://schemas.microsoft.com/xrm/7.1/Contracts" xmlns:ns5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ns6="http://schemas.microsoft.com/xrm/2012/Contracts" xmlns:ns7="http://schemas.microsoft.com/xrm/2011/Metadata" xmlns:ns8="http://schemas.microsoft.com/xrm/2013/Metadata" xmlns:ns9="http://schemas.microsoft.com/xrm/7.1/Metadata">
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:ExecuteTransactionRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>Tuesday, May 23, 2017 2:54 PM -
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>Tuesday, May 23, 2017 2:54 PM -
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>Tuesday, May 23, 2017 2:54 PM -
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>Tuesday, May 23, 2017 2:55 PM -
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />Tuesday, May 23, 2017 2:55 PM -
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>Tuesday, May 23, 2017 2:55 PM -
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />Tuesday, May 23, 2017 2:56 PM -
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>Tuesday, May 23, 2017 2:56 PM -
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Requests</ns3:key>
<ns3:value xsi:type="ns6:OrganizationRequestCollection">
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>Tuesday, May 23, 2017 2:56 PM -
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>ReturnResponses</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:boolean">true</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>ExecuteTransaction</ns2:RequestName>
<ns2:Requests>
<ns6:OrganizationRequest xsi:type="ns2:UpdateRequest">
<ns2:Parameters>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>Target</ns3:key>
<ns3:value xsi:type="ns2:Entity">
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_unitid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>bkd_unit</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statuscode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050005</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>statecode</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>1</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_commitmentstatus</ns3:key>
<ns3:value xsi:type="ns2:OptionSetValue">
<ns2:Value>965050000</ns2:Value>
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>bkd_effectivedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-19T10:00:00Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues />
<ns2:Id>114bb12c-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes />
<ns2:LogicalName>bkd_subopportunity</ns2:LogicalName>
<ns2:RelatedEntities />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Parameters>
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>Update</ns2:RequestName>
<ns2:Target xsi:nil="true" />
</ns6:OrganizationRequest>
<ns6:OrganizationRequest xsi:type="ns11:WinOpportunityRequest">
<ns2:Parameters xsi:nil="true" />
<ns2:RequestId xsi:nil="true" />
<ns2:RequestName>WinOpportunity</ns2:RequestName>
<ns11:OpportunityClose>
<ns2:Attributes>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>actualclosedate</ns3:key>
<ns3:value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:dateTime">2017-05-22T20:09:50Z</ns3:value>
</ns2:KeyValuePairOfstringanyType>
<ns2:KeyValuePairOfstringanyType>
<ns3:key>opportunityid</ns3:key>
<ns3:value xsi:type="ns2:EntityReference">
<ns2:Id>f64bc71e-003f-e711-8172-e0071b6ac181</ns2:Id>
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunity</ns2:LogicalName>
<ns2:Name xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns3:value>
</ns2:KeyValuePairOfstringanyType>
</ns2:Attributes>
<ns2:EntityState xsi:nil="true" />
<ns2:FormattedValues xsi:nil="true" />
<ns2:KeyAttributes xsi:nil="true" />
<ns2:LogicalName>opportunityclose</ns2:LogicalName>
<ns2:RelatedEntities xsi:nil="true" />
<ns2:RowVersion xsi:nil="true" />
</ns11:OpportunityClose>
<ns11:Status>
<ns2:Value>965050004</ns2:Value>
</ns11:Status>
</ns6:OrganizationRequest>
</ns2:Requests>
<ns2:ReturnResponses>true</ns2:ReturnResponses>
</request>
</Execute>
</soap:Body>
</soap:Envelope>Tuesday, May 23, 2017 2:57 PM -
Andrii,
I tried several time to post my payload to this site, but I keep getting 502 Web server gateway or proxy server errors. I also notice there is no way to attach anything to this thread.
Andrii,
I split is up into several posts.
Tuesday, May 23, 2017 2:59 PM -
Hello,
Here is what I got as output of SoapLogger application:
<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="a:ExecuteTransactionRequest" xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts"> <a:Parameters xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"> <a:KeyValuePairOfstringanyType> <b:key>Requests</b:key> <b:value i:type="c:OrganizationRequestCollection" xmlns:c="http://schemas.microsoft.com/xrm/2012/Contracts"> <c:OrganizationRequest i:type="a:UpdateRequest"> <a:Parameters> <a:KeyValuePairOfstringanyType> <b:key>Target</b:key> <b:value i:type="a:Entity"> <a:Attributes> <a:KeyValuePairOfstringanyType> <b:key>bkd_unitid</b:key> <b:value i:type="a:EntityReference"> <a:Id>0e5ac4cd-14ae-e611-80f1-5065f38be1f1</a:Id> <a:KeyAttributes xmlns:d="http://schemas.microsoft.com/xrm/7.1/Contracts" /> <a:LogicalName>bkd_unit</a:LogicalName> <a:Name i:nil="true" /> <a:RowVersion i:nil="true" /> </b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>statuscode</b:key> <b:value i:type="a:OptionSetValue"> <a:Value>965050005</a:Value> </b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>statecode</b:key> <b:value i:type="a:OptionSetValue"> <a:Value>1</a:Value> </b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>bkd_commitmentstatus</b:key> <b:value i:type="a:OptionSetValue"> <a:Value>965050000</a:Value> </b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>bkd_effectivedate</b:key> <b:value i:type="d:dateTime" xmlns:d="http://www.w3.org/2001/XMLSchema">2017-05-23T11:55:17.3216766-04:00</b:value> </a:KeyValuePairOfstringanyType> </a:Attributes> <a:EntityState i:nil="true" /> <a:FormattedValues /> <a:Id>114bb12c-003f-e711-8172-e0071b6ac181</a:Id> <a:KeyAttributes xmlns:d="http://schemas.microsoft.com/xrm/7.1/Contracts" /> <a:LogicalName>bkd_subopportunity</a:LogicalName> <a:RelatedEntities /> <a:RowVersion i:nil="true" /> </b:value> </a:KeyValuePairOfstringanyType> </a:Parameters> <a:RequestId i:nil="true" /> <a:RequestName>Update</a:RequestName> </c:OrganizationRequest> <c:OrganizationRequest i:type="d:WinOpportunityRequest" xmlns:d="http://schemas.microsoft.com/crm/2011/Contracts"> <a:Parameters> <a:KeyValuePairOfstringanyType> <b:key>OpportunityClose</b:key> <b:value i:type="a:Entity"> <a:Attributes> <a:KeyValuePairOfstringanyType> <b:key>actualclosedate</b:key> <b:value i:type="e:dateTime" xmlns:e="http://www.w3.org/2001/XMLSchema">2017-05-23T11:55:17.3221759-04:00</b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>opportunityid</b:key> <b:value i:type="a:EntityReference"> <a:Id>f64bc71e-003f-e711-8172-e0071b6ac181</a:Id> <a:KeyAttributes xmlns:e="http://schemas.microsoft.com/xrm/7.1/Contracts" /> <a:LogicalName>opportunity</a:LogicalName> <a:Name i:nil="true" /> <a:RowVersion i:nil="true" /> </b:value> </a:KeyValuePairOfstringanyType> </a:Attributes> <a:EntityState i:nil="true" /> <a:FormattedValues /> <a:Id>00000000-0000-0000-0000-000000000000</a:Id> <a:KeyAttributes xmlns:e="http://schemas.microsoft.com/xrm/7.1/Contracts" /> <a:LogicalName>opportunityclose</a:LogicalName> <a:RelatedEntities /> <a:RowVersion i:nil="true" /> </b:value> </a:KeyValuePairOfstringanyType> <a:KeyValuePairOfstringanyType> <b:key>Status</b:key> <b:value i:type="a:OptionSetValue"> <a:Value>965050004</a:Value> </b:value> </a:KeyValuePairOfstringanyType> </a:Parameters> <a:RequestId i:nil="true" /> <a:RequestName>WinOpportunity</a:RequestName> </c:OrganizationRequest> </b:value> </a:KeyValuePairOfstringanyType> </a:Parameters> <a:RequestId i:nil="true" /> <a:RequestName>ExecuteTransaction</a:RequestName> </request> </Execute> </s:Body> </s:Envelope>
Check if it would work for you.
Dynamics CRM/Business Solutions MVP
Read My blog- Proposed as answer by Andrii ButenkoMVP, Moderator Tuesday, May 23, 2017 4:00 PM
Tuesday, May 23, 2017 4:00 PMModerator -
Andrii,
Can you explain what you saw that lead you to this answer? I'm looking more for why it was broken then just the answer?
Thanks,
Wednesday, May 24, 2017 12:08 PM -
So I analyzed your request and understood that you want in one transaction update record related to opportunity and then close opportunity as won. For generation of SOAP I provided I used SOAPLogger application. Once I wrote C# code that follows and ran app - I've got Soap I provided. That's pretty it. I hope this will help to resolve your issue. My C# addition for SOAPLogger follows:
SoapLoggerOrganizationService slos = new SoapLoggerOrganizationService(serverConfig.OrganizationUri, service, output); var updateRequest = new UpdateRequest() { Target = new Entity("bkd_subopportunity", new Guid("114bb12c-003f-e711-8172-e0071b6ac181")) { ["bkd_unitid"] = new EntityReference("bkd_unit", new Guid("0e5ac4cd-14ae-e611-80f1-5065f38be1f1")), ["statuscode"] = new OptionSetValue(965050005), ["statecode"] = new OptionSetValue(1), ["bkd_commitmentstatus"] = new OptionSetValue(965050000), ["bkd_effectivedate"] = DateTime.Now } }; var winOpportunity = new WinOpportunityRequest() { OpportunityClose = new Entity("opportunityclose") { ["actualclosedate"] = DateTime.Now, ["opportunityid"] = new EntityReference("opportunity", new Guid("f64bc71e-003f-e711-8172-e0071b6ac181")) }, Status = new OptionSetValue(965050004) }; var transactionRequest = new ExecuteTransactionRequest() { Requests = new OrganizationRequestCollection() { updateRequest, winOpportunity } }; slos.Execute(transactionRequest);
How did you generate soap you provided?
Dynamics CRM/Business Solutions MVP
Read My blog- Proposed as answer by Andrii ButenkoMVP, Moderator Wednesday, May 24, 2017 12:59 PM
Wednesday, May 24, 2017 12:58 PMModerator