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

Notifications

Announcements

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 83

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:
I have the same question (0)
  • Verified answer
    Matthy79 Profile Picture
    4,180 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
    83 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard