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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show column function i...
Power Apps
Unanswered

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
    on at
    Re: Show column function inside collection gives error for lookup column type

    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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard