Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Create a Relationship in Dynamics 365

I have a custom "Product List Template" Entity with an N:N relationship to products, I want to give the users a button to copy the products from an Opportunity onto a new "Product List Template".


I can retrieve the list of Products from the Opportunity and create the custom Entity easily enough, but I cannot see how to add the products to that record once it is created. I don't want to create a new product but there doesn't seem to be an action for "Create a Relationship" or anything similar.


How can I associate existing products with an existing Entity in Dynamics 365?

Community Support
Community Support

Hi @NickDewitt,


According to your description, I assume that you could use the action “List records” to get the existing products.


As the “Product list template” entity with a relationship to products, I assume that they should have common data in both two entities, such as a name or Id. Then you could add a Condition in the flow to check if the two entities have the same name or Id. If yes, create the record in the existing product.


Please try it on your side and feel free reply if you need more help.



Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Mabel,


Yes i'm not having a problem retreiving the list of products from the opportunity as they have an N:1 relationship, so there is a field on the product that points to the opportunity.


That works for a 1:N relationship, but not for an N:N there has to be some sort of intermediate table that associates one record with another. When using the SDK, you create an EntityReference to associate items on an N:N relationship, I don't see how to create this using flow.


Kind regards,




Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,142)