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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to collect a looku...
Power Apps
Unanswered

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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard