web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unbound action "CloseQ...
Power Automate
Suggested Answer

Unbound action "CloseQuote" not working

(1) ShareShare
ReportReport
Posted on by 15
I am trying to close the D365 Sales quote from Power Automate and it seems like this is just not working.
When I do a update row statecode & statuscode, I am getting - 
This message can not be used to set the state of quote to Closed. In order to set state of quote to Closed, use the CloseQuoteRequest message instead."
 
If I use CloseQuote unbound action by providing below values:
quoteclose item/QuoteClose/_quoteid_value: <quote GUID>
item/Status: 3
I am getting - 
 
CRM do not support direct update of Entity Reference properties, Use Navigation properties instead.
Categories:
I have the same question (0)
  • Suggested answer
    Pstork1 Profile Picture
    69,417 Most Valuable Professional on at
    Take a look at the following article. It explains how to close a quote using Power Automate.  Close D365 Opportunity on Quote Closure using Power Automate (Flow) – ba365guy

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • MP-15041641-0 Profile Picture
    15 on at
    Hello @Pstork1,
     
    This solution may not work coz it is for closing the Opportunity flow trigger when someone closes Quote. 
    What I am looking for is to close the Quote.
     
    Thanks.
  • Suggested answer
    Pstork1 Profile Picture
    69,417 Most Valuable Professional on at
    Sorry, I posted the wrong link. Its for a different article on the same blog. Close D365 Quote Using Power Automate (Flow) – ba365guy

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • MP-15041641-0 Profile Picture
    15 on at
    Thank you @Pstork1. I checked the other article as well and it looks straight. I even ran it, but it didn't close by quote. Later I checked that may be because my quote is in Draft status and not Activated yet.
    I am creating these quotes using unbound function GenerateQuoteFromOpportunity through Power Automate and it creates the quotes in Draft status by default.
     
    Do you know how to Activated these quotes through Power Automate?
     
    Thanks.
  • Pstork1 Profile Picture
    69,417 Most Valuable Professional on at
    Sorry, I don't know how to activate the quotes after they have been created by Power Automate.  In general to activate them would be to change the Statecode from 0 to 1.  But I don't know if its more complex than that.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Suggested answer
    scardosoo Profile Picture
    6 on at

    Hello,

    I found a solution after investigating the issue.

    It turns out that the "Perform unbound action" connector for "CloseQuote" action wasn’t working as expected because it wasn’t reading the metadata correctly. To better understand the issue, I analyzed the request that is sent when closing a quote from the ribbon in the UI. Based on that, I discovered the correct and expected JSON payload structure:

    {
      "QuoteClose": {
        "actualend": "2025-06-25T16:54:22.286Z",
        "quoteid@odata.bind": "/quotes(<QUOTE_GUID>)",
        "subject": "Quote Closed ({0}) - {1}",
        "description": null,
        "quotenumber": "<QUOTE_NUMBER>",
        "revision": 1,
        "ownerid_quoteclose@odata.bind": "/systemusers(<USER_GUID>)"
      },
      "Status": 6
    }
     

    So, if there's an error when invoking the CloseQuote action due to metadata not being properly read, you need to manually pass the action parameters as shown above.

    In Power Automate, configure the action as follows:


    • Action Name: trim('CloseQuote')
    • Action Parameters: (use the JSON structure above)

    This should resolve the error: "CRM do not support direct update of Entity Reference properties, Use Navigation properties instead."

    Let me know if everything worked as expected.

    Best regards,
    Samuel Cardoso

    Screenshot 2025-06-26 085545.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard