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 / Filter CDS Account ent...
Power Apps
Answered

Filter CDS Account entity with record GUID

(0) ShareShare
ReportReport
Posted on by 39

I am having a problem filtering for a single Account record in the "Item" function field on my App.

As you can see in my image below... I am trying to filter the CDS Account entity records using a guid variable called "accountid_var".

The formula I am using is "Filter(Accounts, accountid= GUID(accountid_var))"

You can see that the filter is actually working as far as filtering the records as you can see the chosen record in the line below the formula.

But the problem is that I am getting an error message, "Expected Record Value" and consequently the filtered record is not appearing in the gallery.

I also tried the formula "Filter(Accounts, Account = GUID(accountid_var))"... switching out the accountid field with just Account.

But got the same results, filters the one record but get the same error.

 

Any suggestions on how I can fix this formula would be most appreciated.

 

Thanks- Clayce

 

Filtering Account error image.png

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi Clayce
    Can you clarify the object where you're attempting to set the Item property? Is it a form control?

    If so, you would call the Lookup function like so:

    Lookup(Accounts, accountid= GUID(accountid_var))

     

  • Clayce Profile Picture
    39 on at

    on the EditForm.. ps tried Lookup and didn't work.

     

    crodamer_0-1602692759808.png

     

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi @crodamer 

    Do you receive an error when you try Lookup, or is it not returning the record that you expect?

  • Clayce Profile Picture
    39 on at

    Getting error that says, "invocation of unknown or unsupported function)

  • Clayce Profile Picture
    39 on at

    Hi Timl,

     

    Tried again and your formula worked.

    Do you have explanation as to why Lookup worked while Filter didn't on the EditForm.

     

    Thank you so much for the help!

    Clayce

     

     

    crodamer_0-1602694617095.png

     

  • timl Profile Picture
    37,212 Super User 2026 Season 1 on at

    Hi Clayce,

    Glad that worked for you.

    In answer to your question, the filter function returns a *table* of data. We typically call this function to populate a gallery, a data table, combo box, or any other control that expects multiple records.

    In contrast, the lookup function returns the first *record* that matches the criteria. Therefore, we need to call the lookup function for controls that expect a single record, such as a form control.

  • Clayce Profile Picture
    39 on at

    Makes sense... thanks again for the help!

     

    Clayce

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard