cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
muzhasan
Regular Visitor

Lookup related Many to Many (N:N) records using Flow

In my data model I have established a many to many (N:N) relationship between two Entities. When I Get a CDS Record in Flow, how can I lookup any of these Related records?


I have tried Getting Records using the N:N Reationship Entity Name as the Entity, but this isnt recognised as a valid source.


So as a work around I tried to use a Mutli-select Option Set. Again in Flow I was unable to see any of these multi select values on my Record.


Can anyone provide any guidance on how I can work with N:N relationships or Multi-select option sets in Flow? I am loathed to create Custom Entity just to hold the relationships...

1 ACCEPTED SOLUTION

Accepted Solutions

I just found an article which states how to access the related table.

 

https://www.sikich.com/insight/how-to-find-n-n-relationships-with-dynamics-365-logic-apps-and-flow/

 

Essentially you have suffix the relationship entity name with the word 'set' and then its can be found using the List records action. 

 

Just testing it now...

View solution in original post

5 REPLIES 5
yashag2255
Dual Super User II
Dual Super User II

Hi @muzhasan 

 

To get the related records for a particular record of the entity, you can loop through and get those records. Please see the solution in the below thread and check if that works for you:

https://powerusers.microsoft.com/t5/Building-Flows/Sales-Rep-from-Dynamics-to-HTML-Table/m-p/291418#...

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thank yo for your response.

 

Unfortunately I am unable to use any Dynamics 365 actions due to a corporate policy in place. I can only access records using the CDS actions or Web Services.

 

Is there still a way for me to acheive this?

yashag2255
Dual Super User II
Dual Super User II

Hi @muzhasan 

 

Yes. You could do that with the CDS actions too. Please give it a try and let us know if you face any issues. 

It is not clear to me from this article how I need to approach this.

 

My problem is that when I Get a record from entity A, there are no dynamic fields available to the related entity B.

 

Maybe if we approach this the other way: How can I add a new N:N realtionship between two CDS entities using flow ? If this can be answered then it might explain now these relationships work.

I just found an article which states how to access the related table.

 

https://www.sikich.com/insight/how-to-find-n-n-relationships-with-dynamics-365-logic-apps-and-flow/

 

Essentially you have suffix the relationship entity name with the word 'set' and then its can be found using the List records action. 

 

Just testing it now...

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (75,905)