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 Apps / CDS Data Flow Relation...
Power Apps
Unanswered

CDS Data Flow Relationships

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am using an ERP  that has a SQL database.  I have created 2 flows (one for orders, and one for the bill of materials for those orders) into CDS from SQL views.  Each dataflow has the same JOBID field.  I setup a relationship (one to many)  between the 2 entities, but it doesn't seem to connect the entities  in the app.  I want to eliminate a lookup formulas in my app. 

My end goal is to pull information into CDS from SQL, add reference data that wasn't supported in the ERP, and add app user data to the records. If there is a better way, please let me know.  Thanks, Chene

I have the same question (0)
  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @remarcc 

     

    You need to create an alternate key on your entity that is on the one side of the one to many relationship.  You then can use that key in the data mapping of the entity that is on the many side of the relationship.

     

    For example, I have a Building entity and a Building Visit entity in a one to many relationship.  The Building entity has a alternate key field defined called Building Number.  I then use this to map the Building Visits' relationship to the Building in the data flow.

     

    Annotation 2020-04-10 070519.png

     

    -----
     
    If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard