cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
audemj23
New Member

Retreive a value of a column after comparing two sharepoint lists

Hi to all.

 

I have the following scenario

-One sharepoint list named "rol" with a column "On call" of type:Person

-One sharepoint list named "directory" with a column "name" of type:Person and a column "Phone" of type:number

-One powerapp with a gallery showing the results of "roll" list

-Both lists are added as data connectors.

 

I want to compare "on call" and "name", if they are equals then show the value of "Phone" for that particular match in a filed inside the same gallery.

 

Is this possible?

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
AJ_Z
Super User
Super User

So I think I understand what you are looking to do. Let's say you have a gallery for the datasource rol and you want to add a label inside it with the phone number from directory. You would put on the text property of the label in the gallery:

 

LookUp(directory,name.Email = ThisItem.'On call'.Email).Phone


this would show the phone number of the person matching the same in directory as emails should be unique.

 

let me know if this is helpful

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

View solution in original post

3 REPLIES 3
AJ_Z
Super User
Super User

So I think I understand what you are looking to do. Let's say you have a gallery for the datasource rol and you want to add a label inside it with the phone number from directory. You would put on the text property of the label in the gallery:

 

LookUp(directory,name.Email = ThisItem.'On call'.Email).Phone


this would show the phone number of the person matching the same in directory as emails should be unique.

 

let me know if this is helpful

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

audemj23
New Member

Worked perfectly.
I learned in the hard way that powerapps is case sensitive!

thanks a lot

Glad I was able to help 🙂

 



Signature:


If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Link to the Power Platform Professionals United Kingdom User Group:

https://powerusers.microsoft.com/t5/Power-Platform-Professionals/gh-p/PowerPlatformProfessionalsUnit...

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 (1,682)