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 Apps - Building 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard