Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Create a Quote revision without Quote Products

Posted on by
When I revise a quote, all quote products are included in the newly created quote with revision number 1. I do this with the API and I get a timeout error when there are too many quote products. This is happening even though I made the timeout property infinite in the API method I created.
 
When revising a quote, I want the quote products not to come with it. Is there an API call that I can do this?
 
You can see the requests I made while revising a quote below.
 
1- ActivateQuote:
requestURL: api/data/v9.2/quotes({quoteid})
requestBody:
{
    "quoteid": "{quoteid}",
    "statecode": 1,
    "statuscode": -1
}

2-CloseQuote:
requestURL: api/data/v9.2/CloseQuote
requestBody:
{
    "QuoteClose": {
        "quoteid@odata.bind": "/quotes({quoteid})",
         "subject": "Quote Closed ({0}) - {1}",
         "revision": 1
    },
    "Status": 7
}

3- ReviseQuote:

requestURL: api/data/v9.2/ReviseQuote
requestBody:
{
    "QuoteId": "{quoteid}",
     "ColumnSet": {
         "AllColumns": false,
         "Columns": [
             "quoteid"
         ]
     }
}
Categories:
  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,506 Super User 2024 Season 1 on at
    Create a Quote revision without Quote Products
    Are using this logic in JS ?
     
    And if yes then you can try to use XMLHTTP request and use it in Synchronisation mode.
     
    Because the web api are by default asynchronous in nature.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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

Product updates

Dynamics 365 release plans