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 / Power Apps in Teams: L...
Power Apps
Unanswered

Power Apps in Teams: Lookup Values in a Form V2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I previously had a question on Lookups in Forms  that @RandyHayes  helped me with, but this one is more complex (or at least I am making it so in my head!)

 

I'm building a Power App in Teams, with Dataverse for Teams as my datasource.  I'm struggling to get some of my fields to prepopulate properly in edit forms

 

I have a "Requests" table which has a lookup column, Request Type

 

fig 2.png

 

In the Request Types table, I have the "Identifier" which is the lookup column, and 3 additional columns: Category, Type and Sub-type

fig 1.png

 

In my form I have 3 custom fields with cascading Combo Boxes for "Category", "Type" and "Sub-type".  My "Request Types" field will be a hidden field that populates based on the selections in Category, Type and Sub-type.

 

My problem: When I view an existing record, the comoboxes correctly show the correct Category, Type and Sub-type as expected (although strangely they are faded as if they are disabled fields… that's future Sandie's problem) however, when I go into Edit mode the fields are blank.

 

View Mode:

fig 3.png

 

Edit Mode:

fig 4.png

 

When I select the correct Category (in this case Website), the Type, Sub-type and Request Type suddenly fill to the correct selections as well.

fig 5.png

 

I understand that the Type, Sub-Type and Request Type are not initially populated because they are dependent on Category being populate, but why is my "Category" not showing the correct default selection in Edit mode?

 

For reference:

 

Items

DefaultSelectedItems

Category

Distinct('Request Types',Category)

{Result: LookUp('Request Types',Identifier=ThisItem.'Request Type'.Identifier).Category}

Type

Distinct(Filter('Request Types',Category = re_RequestCategoryValue.Selected.Result),Type)

{Result: LookUp('Request Types',Identifier=ThisItem.'Request Type'.Identifier).Type}

Sub-type

Distinct(Filter('Request Types',Type = re_RequestTypeValue.Selected.Result),'Sub-type')

{Result: LookUp('Request Types',Identifier=ThisItem.'Request Type'.Identifier).'Sub-type'}

Request Type

Choices([@Requests].'Request Type')

First(Filter('Request Types',Category = re_RequestCategoryValue.Selected.Result, Type = re_RequestTypeValue.Selected.Result, 'Sub-type' = re_RequestSubTypeValue.Selected.Result))

 

Note: with my DefaultSelectedItems I had thought that I could just put eg: ThisItem.'Request Type'.Category, however this did not work.  Although it does not error, the output is blank when tested in a Label.  I can get the exact lookup field: ThisItem.'Request Type'.Identifier, but not the other Request Type fields.

 

Note: the Orange text in the combobox datacards is a label where the value is eg: LookUp('Request Types',Identifier=ThisItem.'Request Type'.Identifier).Category, to show that the result/output of the lookup is not blank.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Bump

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard