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 / Connecting Data From T...
Power Apps
Answered

Connecting Data From Two SharePoint Lists - DropDown Output and Form Control

(1) ShareShare
ReportReport
Posted on by 113 Most Valuable Professional

Hello all,

 

I am trying to build a form where I have a dropdown with a list of goals (trimmed by the person who entered the goal, which I've got set up).  When a person selects a goal from the dropdown, I'd like that goal to be populated in a form control.

 

The problem is that the form control is going to belong to a second source (both SharePoint lists, both will have a column named Goal).  I want the contents of the dropdown selection to fill into the first data card in the form control, so that when the user fills out the rest of the fields, the goal will match with what they selected from the first list.

 

This is the formula I have that isn't working now (darn you, Chat GPT!).  The two lists are called OKRGoals and OKRActions, and the two columns are both called Goal.

lsheltonSTO1_0-1678998682679.png

Your help would be appreciated.  Thank you in advance!

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @lsheltonSTO1 Filter will return a table but what you need is a single record in the default property of the Dropddown. So, replace the Filter with a LookUp.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • lsheltonSTO1 Profile Picture
    113 Most Valuable Professional on at

    I tried that, and I'm still getting the same error I was getting on the Filter formula that wasn't working (which I should have shared) - "Expected Text value"

  • lsheltonSTO1 Profile Picture
    113 Most Valuable Professional on at

    For more context, the OnSelect of the dropdown has this: Set(varGoal,Dropdown1.SelectedText.Value), so I'm reasonably confident that varGoal is text.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @lsheltonSTO1 LookUp will not return Text Value. You have to narrow it down to the field which has the Text Value,

    e.g LookUp('OKRActions', OKRGoals.Goal=varGoal, yourTextColumn)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • lsheltonSTO1 Profile Picture
    113 Most Valuable Professional on at

    Okay, so that got rid of that error, but now varGoal is a text value and OKRGoals.Goal is a table, so there's an error because the two types don't match.

     

    Thank you in advance for being patient with me!

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @lsheltonSTO1 What are the field in OKRActions SP List and their Data Type?

  • lsheltonSTO1 Profile Picture
    113 Most Valuable Professional on at

    Both fields are renamed Title fields - Goal and both are therefore single line of text fields.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @lsheltonSTO1 if that's the case, LookUp('OKRActions', Goal=varGoal, Goal) should retun a Text.

  • lsheltonSTO1 Profile Picture
    113 Most Valuable Professional on at

    I didn't have any data in the 2nd SharePoint list and that was causing the error.  Thank you so much!

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard