cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Patryk_0909
Regular Visitor

Displaying data from lookup column dynamically in Power App

Hello!

I creating a new power app, which using Sharepoint List. The app will be show a new alerts (fetched from SP list). I have main list with alerts and second list with descriptions, each new alert gets alertID (10 defined alertID). In second list I have the same name of column, with the same alertID. I’ve created lookup column for alertID, but I can’t fill the field in main list dynamically, I need make it manually. I’d like get an effect like that: bind alertID in two lists and get description in lookup column dynamically in other to display this in my power app. Do you have any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Patryk_0909 ,

You cannot refer to elements such as list and field names dynamically - need to (as you have noted) hard-code it. The quickest way would be a Switch() statement

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Patryk_0909 ,

You cannot refer to elements such as list and field names dynamically - need to (as you have noted) hard-code it. The quickest way would be a Switch() statement

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Patryk_0909
Regular Visitor

Thanks @WarrenBelz  ! I'll try to make it 🙂 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,190)