web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Dataverse connector: a...
Power Automate
Answered

Dataverse connector: accessing many-to-many relations

(0) ShareShare
ReportReport
Posted on by 85

I have a datamodel in Dataverse with two main tables

  • Documents
  • Roles

There is a many-to-many relationship between these two tables, and this is done (behind the scenes) by creating a relationship table. In my case it is called "gp_Document_gp_Role_gp_Role" (in my defense, naming is done automatically 😉).

 

I would like to list all entries in the relationship table for a specific Document (and also add rows to the table at a later point in time)

 

How do I do that?

 

Using the Dataverse "List rows" Connector I can find both the Documents table and the Roles table - but not the relationship table.

 

I think I can access it from the Web API like

 

 

https://myorgid.crm4.dynamics.com/api/data/v9.1/gp_documents(document_guid)/gp_Document_gp_Role_gp_Role

 

 

But it will become a virtual nightmare to configure access with app registrations in Azure, client secrets etc and have it deployed through multiple environments.

 

Is there a better way to do this?

 

Thanks

 

/Jesper

Copenhagen

Categories:
  • Verified answer
    Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Hello @jrossstocholm 

     

    Use „list rows“ and „Expand Query“ to get the connected data. Just use the „Relationship name“ (don’t forget the prefix).

  • JS-05081236-0 Profile Picture
    85 on at
    Hi @mattth79 thank you for this - I have found another solution that I am chasing right now. It allows me to access the relationship table directly through the connector. https://www.sikich.com/insight/how-to-find-n-n-relationships-with-dynamics-365-logic-apps-and-flow/ 😊 /Jesper

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard