cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate III
Advocate III

Add products to an Dynamics 365 Opportunity from Microsoft Flow?

I'm trying to add products to an opportunity in Dynamics 365 and I can't seem to figure out how to make it work. Does anyone have any ideas on making this work?  I want to pull from the existing products that are already created.  Thanks!

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Add products to an Dynamics 365 Opportunity from Microsoft Flow?

Hi @ MattyJ_09,

 

Could you please share a screenshot of the configuration of your flow?

 

Do you want to add all existingproducts to an opportunity in Dynamics 365?

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

Please let me know if your issue could be solved.

 

Regards,
Alice Zhang

Highlighted
Advocate III
Advocate III

Re: Add products to an Dynamics 365 Opportunity from Microsoft Flow?

Thanks for the reply.  I was able to get the flow to work.  I need to do an updated record with the Entity Name of Opportunity Product.  Then I needed to add the Opportunity Product ID as the Record identifier and the field Opportunity with the Opportunity ID. 

Capture.PNG

Highlighted
Advocate III
Advocate III

Re: Add products to an Dynamics 365 Opportunity from Microsoft Flow?

Thanks for the reply.  I was able to get the flow to work.  I need to do an updated record with the Entity Name of Opportunity Product.  Then I needed to add the Opportunity Product ID as the Record identifier and the field Opportunity with the Opportunity ID. 

Capture.PNG

Highlighted
Advocate III
Advocate III

Re: Add products to an Dynamics 365 Opportunity from Microsoft Flow?

I guess I didn't get it.  All I was doing is adding an existing Opportunity Product to an Opportunity instead of creating a new Opportunity Product.  So when I try to create a new Opportunity Product I add the Opportunity ID under the Opportunity Field and put the Existing Product ID under the Existing Product.  But when I run the flow I get an error.

1.PNG

 

 

The error code I'm getting is:

{
  "error": {
    "code": 502,
    "source": "msmanaged-na.azure-apim.net",
    "clientRequestId": "12efdb07-55f9-4efe-911e-5737fb354e33",
    "message": "BadGateway",
    "innerError": {
      "status": 502,
      "message": "The unit id is missing.",
      "source": "xxxxxxxx.crm.dynamics.com",
      "errors": [],
      "debugInfo": "clientRequestId: 12efdb07-55f9-4efe-911e-5737fb354e33"
    }
  }
}

But when I go to the product inside of Dynamics 365 I'm showing the default units we have assigned in Dynamics.  2.PNG

 

 

 

 

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,767)