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

Notifications

Announcements

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
    68,707 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
    68,707 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
    68,707 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard