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 Apps / Dataverse for Teams ta...
Power Apps
Answered

Dataverse for Teams table relationships and Power Apps Collections not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey everyone, 

 

I am having trouble using Power Apps Collections to extract data from Dataverse for Teams. More precisely, I have a table Demandes (parent) that is related to a table Article (child). When I try to collect the Articles of a specific Demande (say, the first row), I have the following:

 

ClearCollect(Test; First(Demandes).Articles)

 

AfnanKhan_0-1637164531743.png

 

However, if I use the ShowColumns function (as a workaround), it seems to work much better:

 

ClearCollect(Test; ShowColumns(First(Demandes).Articles;"cr9a3_codefranchise";"cr9a3_numeroteinte"))

 

AfnanKhan_1-1637164596665.png

 

Am I doing something wrong? Or is this normal?

 

Thank you for helping me out. Have a nice day!

Categories:
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Anonymous 

    This is normal behaviour and I understand why this can be confusing. Calling ShowColumns is the correct approach to this issue.

     

    Power Apps applies 'explicit column selection' to retrieve only the columns that are necessary. This is a performance optimisation. At the time when you call ClearCollect, Power Apps doesn't know whether you need cr9a3_codefranchise, so it doesn't retrieve data for that column. Explicitly specifying cr9a3_codefranchise through ShowColumns indicates that you require that column, which explains the behaviour that you see.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @timl for your answer! I understand your point but, in that case, how can we manage to correctly extract data from a Lookup column (say, the "Created By" column)? Because ShowColumns does not seem to work for this case. Could you guide me in dealing with this correctly?

  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Anonymous 

    Unfortunately, I'm not sure if it's possible to include 'field' columns in a call to ClearCollect. The only thing I can suggest is to call AddColumns and to include the specific fields that you extract from the 'Created By' column. For example:

    ClearCollect(Test; 
     ShowColumns(AddColumns(First(Demandes).Articles;
     "PrimaryEmail";
     'Created By'.'Primary Email'
     );
     "cr9a3_codefranchise";
     "cr9a3_numeroteinte";
     "PrimaryEmail"
     )
    )

     

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 Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard