Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ReviseQuote SOAP Request

Posted on by

Hi,

I'm making a SOAP request for revising a quote in CRM Dynamics 2015.

The quote is Active but the response says: The quote cannot be revised because it is not in closed state.

Any ideas? This is very strange...

SOAP CALL:

  1. <s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope" xmlns:a="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns:b="schemas.datacontract.org/.../System.Collections.Generic" xmlns:c="www.w3.org/.../XMLSchema" xmlns:d="schemas.microsoft.com/.../Services" xmlns:e="schemas.microsoft.com/.../Serialization" xmlns:f="schemas.microsoft.com/.../Arrays" xmlns:g="schemas.microsoft.com/.../Contracts" xmlns:h="schemas.microsoft.com/.../Metadata" xmlns:j="schemas.microsoft.com/.../Query" xmlns:k="schemas.microsoft.com/.../Metadata" xmlns:l="schemas.microsoft.com/.../Contracts"><s:Header><a:SdkClientVersion>6.0</a:SdkClientVersion></s:Header><s:Body><d:Execute><d:request><a:Parameters><a:KeyValuePairOfstringanyType><b:key>QuoteId</b:key><b:value i:type="e:guid">B74F94B7-3210-E511-80CD-0050569C1150</b:value></a:KeyValuePairOfstringanyType><a:KeyValuePairOfstringanyType><b:key>ColumnSet</b:key><b:value i:type="a:ColumnSet"><a:AllColumns>true</a:AllColumns><a:Columns /></b:value></a:KeyValuePairOfstringanyType></a:Parameters><a:RequestId i:nil="true" /><a:RequestName>ReviseQuote</a:RequestName></d:request></d:Execute></s:Body></s:Envelope>

SOAP ANSWER:

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="it-IT">The quote cannot be revised because it is not in closed state.</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"><ErrorCode>-2147220941</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>The quote cannot be revised because it is not in closed state.</Message><Timestamp>2015-06-11T12:31:14.2622882Z</Timestamp><InnerFault><ErrorCode>-2147220941</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>The quote cannot be revised because it is not in closed state.</Message><Timestamp>2015-06-11T12:31:14.2622882Z</Timestamp><InnerFault i:nil="true"/><TraceText i:nil="true"/></InnerFault><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

*This post is locked for comments

  • RE: ReviseQuote SOAP Request

    For me it is strange that I must close the quote and then revise it, but it works so I complete my goal. Thank you Guido.

  • RE: ReviseQuote SOAP Request

    Thank you for the answer, I have used a ribbon button that have the same display/enable rules for standard Revise Quote button (so I'm sure).

    The standard revise works. If I close the quote as canceled I can revise it with soap call.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans