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 / Show column function i...
Power Apps
Answered

Show column function inside collection gives error for lookup column type

(0) ShareShare
ReportReport
Posted on by 34

Hello ALl,

 

I have a table in dataverse I am trying to create a collection and show coulmns from the table inside collection later to use patch function to update the records in table

the isssue is i have a lookup type coulmn inside my dataverse table and when i use

ClearCollect(
colDeptUpdates,
ShowColumns(
Table(Defaults('Department')),
"cr_name",
"cr_duedate",
"cr_priority",
"cr_userdetails",
"cr_worktaskid"
)
);
Clear(colDeptUpdates) 

I am getting error that cr_userdetails column not found and show column has invalid argument if i remove that it doesnot give error so the only difference is all other column are choice and text column but user deatils is lookup coulum, can anyone help how to get this work how to show lookup columns from dataverse inside a collection.

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Matbrown ,

     

    You could try:

    ClearCollect(
     colDeptUpdates,
     AddColumns(
     ShowColumns(
     FirstN('Department',1),
     "cr_name",
     "cr_duedate",
     "cr_priority",
     "cr_worktaskid"
     ),
     "userdetails",
     userdetails.XX
     )
    );
    Clear(colDeptUpdates) 

     

    Best Regards,

    Bof

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard