Answered by:
Creating a record for a many to many relationship in a workflow

Question
-
I have a many to many relationship that I want to add records into from a workflow. I can see the entity but don't see where I relate the parent record to the new record. Can someone help?
Thanks, Dale
Friday, September 6, 2013 10:03 PM
Answers
-
Dale,
N:N relationships are not supported by OOB Workflows. Other options would be to use a manual N:N or Connections. Please refer the below for details.
http://www.dynamicscrmtrickbag.com/2011/05/08/many-to-many-relationships-in-dynamics-crm-2011/
Not sure of the exact requirement, but there are other ways to add N:N relationship records using custom code.
If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Friday, September 6, 2013 10:32 PM -
Hi,
As Mamatha the parent (similar to lookups on 1:N relationships) for a N:N relationship is not present, because a child does not have one parent. Hence, you could not create it through a workflow. You may use some custom code to achieve this.
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Saturday, September 7, 2013 4:38 AMModerator
All replies
-
Dale,
N:N relationships are not supported by OOB Workflows. Other options would be to use a manual N:N or Connections. Please refer the below for details.
http://www.dynamicscrmtrickbag.com/2011/05/08/many-to-many-relationships-in-dynamics-crm-2011/
Not sure of the exact requirement, but there are other ways to add N:N relationship records using custom code.
If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Friday, September 6, 2013 10:32 PM -
Hi,
As Mamatha the parent (similar to lookups on 1:N relationships) for a N:N relationship is not present, because a child does not have one parent. Hence, you could not create it through a workflow. You may use some custom code to achieve this.
- Marked as answer by Payman BiukaghazadehEditor Tuesday, September 24, 2013 1:55 PM
Saturday, September 7, 2013 4:38 AMModerator -
The dynamicscrmtrickbag.com domain is not working as of 12/29/17. I recommend you use Workflow Tools which is a free workflow solution that can Associate (create N:N relations) records to each other. You can find it on GitHub .com/demianrasko/Dynamics-365-Workflow-ToolsFriday, December 29, 2017 3:43 PM