Customer Engagement & Dynamics CRM Forum

Expand all | Collapse all

Error Trying To Close Opportunity Using Power Automate

Jump to Best Answer
  • 1.  Error Trying To Close Opportunity Using Power Automate

    GOLD CONTRIBUTOR
    Posted May 10, 2021 08:55 AM
    I'm trying to use Power Automate to close opportunities that meet a specific condition, but when I get to the step that closes the opportunity, I get an error - 0x80040216 - An unexpected error has occurred. Status Code 400. I'm using the Microsoft Dataverse Connector - Update a Row with a table name of Opportunity Close Activities. Below is a screen shot of the step that is failing. Does anyone have any idea what my problem may be? I've researched and tried different things until I'm blue in the face. I would appreciate any help. Thanks.




    ------------------------------
    Scott Grimes
    ITW / Hobart
    Troy OH
    ------------------------------


  • 2.  RE: Error Trying To Close Opportunity Using Power Automate
    Best Answer

    Posted May 11, 2021 01:58 AM
    Hi @Scott Grimes,
    I hope that I can get some normal colour on your face again ;-).

    I think that you are almost there. But instead of using the 'update' action, you need to use the 'Create' action. ​I've build a flow that's doing al lot of manipulating on a Business Process flow and the related Opportunity and in there I use the following action to close the Opportunity as Won. Hope this helps.



    ------------------------------
    Wim Krings
    DevOps Engineer Dynamics 365
    Apg
    Heerlen
    ------------------------------



  • 3.  RE: Error Trying To Close Opportunity Using Power Automate

    GOLD CONTRIBUTOR
    Posted May 11, 2021 10:38 AM
    Thank you so much Wim. That solved my problem and my Flow is working great now. I really appreciate your help!!

    ------------------------------
    Scott Grimes
    ITW / Hobart
    ------------------------------



If you've found this thread useful, dive deeper into User Group community content by role