cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tiprat
Frequent Visitor

Lookup secondary value from Sharepoint list

Hi,

 

I have a Sharepoint list with 2 columns, 'Title' & 'Template Value'.

 

'Title' is the datasource for a dropdown in my PA form.

 

My PowerApps form has a data connection called 'Contract Type'.

 

I am trying to return the 'Template Value' based on the 'Title' selection in my dropdown and write the value to VarLetter.

 

I using the below formula for my dropdowns 'OnSelect' function:

 

Set(VarLetter,(LookUp('Contract Type', Dropdown4.Selected.Title = Title).'Template Value'))

 

Its setting values but not the correct ones, not sure how it is setting wrong ones but it is, must be something stupid !?


Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
tiprat
Frequent Visitor

Solved it, needed to use OnChange instead of OnSelect and the formula works.

View solution in original post

2 REPLIES 2
tiprat
Frequent Visitor

Solved it, needed to use OnChange instead of OnSelect and the formula works.

alrez
Community Support
Community Support

Hi,

 

Thanks for the follow up on this post. Please remember to mark your post as the answer. Hopefully this will prove to be useful for future communities users who are having similar issues.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,982)