How to WIN/LOSE Dynamics 365 CRM Opportunity through Power Automate FLOW

By | December 30, 2021


With Power Automate FLOW, we can execute a huge number of operations by connecting various systems. Now, we are talking about the Dynamics 365 CRM where we can execute the Actions of Dynamics 365 CRM. Here, we know that with the “Perform an unbound/bound” action step we can execute the CRM actions. So, we are trying to execute one of the CRM actions that are “WIN/LOSE OPPORTUNITY” but this action is not that simple as compared to other actions.

Here, you can see we have “WinOpportunity” action is available in the “Perform an unbound action” but this action is not working as per our expectation and we are getting below error.

Dynamics 365 CRM Opportunity

Dynamics 365 CRM OpportunitySo, to execute the “WIN Opportunity” action, we found an alternate solution. Let’s discuss the same to WIN an opportunity using Power Automate FLOW.


To WIN opportunity using Power Automate FLOW, follow the steps given below:

  1. Basically, we need to specify the action name inside the “Perform an unbound action”. No need to use its in-build option to select “WIN Opportunity” as we tried above.
  2. So, for this you need to store the Action name in one Variable as you can see in the below screenshot:

Dynamics 365 CRM Opportunity

  1. After storing the “WinOpportunity” action name, you need to map this variable to ‘Perform an unbound action” step where your “WinOpportunity” action will be executed.

Note: Here we must store the Action name inside the Variable. We cannot directly write “WinOpportunity” name inside the “Perform an unbound action” step.

Dynamics 365 CRM Opportunity

  1. Map ‘actionName’ variable in Action Name.Dynamics 365 CRM Opportunity
  2. Set the parameters of the Action like Opportunity ID as shown below:

Dynamics 365 CRM Opportunity

  1. After setting the action parameters, the steps will look as below:

Dynamics 365 CRM Opportunity

  1. With this above step, we can execute the WinOpportunity action easily.

Similarly, we can execute the Lose Opportunity as shown below:

Dynamics 365 CRM Opportunity

In “Status” you can pass the 4 (Canceled) or 5 (Out-Sold) according to your requirement.

So using this you can close the opportunity as Lost.


In this way, by using Power Automate FLOW we can WIN/LOSE Opportunity in Dynamics 365 CRM/CE.

Kanban Board