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 / How to collect a looku...
Power Apps
Answered

How to collect a lookup entity

(0) ShareShare
ReportReport
Posted on by 230

Hi,

I have an issue with a lookup field in CDS.

A store is managed with an user. Every user is stored in CDS in the "Users" entity.

I try to use this function:

 

collect(Stores;{
Store_Name;"My store";
User_in_charge:lookup(Users;'full name'="Brian Singer")})

 

 The system says that it needs a data entity and the type I try to insert is not compatible. I tried with the GUID but nothing works at all.

 

Can someone help me?

 

Kind regards

I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @Kesh 

    I'm not sure whether it is a clerical error or something, but could you please modify the formula as follows

     

    Collect(Stores;{Store_Name:"My store";User_in_charge:LookUp(Users;'Full Name'="Brian Singer")})

     

    In my test, this codes can work well, could you have a try to check if the issue is fixed?

    Snipaste_2020-02-13_14-04-24.png

    Sik

  • Kesh Profile Picture
    230 on at

    Hi, thank you for your time, I don't understand why it does not works at all:

    this is my User in charge filed in CDS:

    image.png

     

    And I tried your code (the same as my) and I have this error:

     

    image.png

    I don't understand.

    Please help me

  • Verified answer
    Kesh Profile Picture
    230 on at

    Hi, I found the solution replacing collect() by update().

    Thank you for your time

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 633

#2
11manish Profile Picture

11manish 588

#3
Valantis Profile Picture

Valantis 457

Last 30 days Overall leaderboard