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 / Lookup dropdown doesn'...
Power Apps
Unanswered

Lookup dropdown doesn't update in SP List on form submit when selection is limited by condition

(0) ShareShare
ReportReport
Posted on by 113

I have a Canvas app in Powerapp, which has DataSource A where it writes the data. Here I have a Lookup column (CostCenter) which fetches data from DataSource B.

 

In the PowerApp form,

 

I have a dropdown1 which has three options, (1,2,3) and Dropdown2 which is a lookup column in DataSource A.

 

I tried to set condition, when dropdown1 is selected as "1", Dropdown2, should automatically fill a option available in the lookup field. Filling works with switch function, however at the backend when the form is submitted, the value of DropDown2 is not patched in DataSource A.

 

But, if I do not automatically set the values or limit the options in Dropdown2 based on Dropdown1 selection, when user manually selects the value in Dropdown2, it gets updated in SharePoint List.

 

Can you help me to achieve this ?

Categories:
I have the same question (0)
  • RogierE Profile Picture
    879 Moderator on at

    Hi,

     

    In my experience, lookup columns don’t integrate well with PowerApps. 
    better to keep your column in DataSource A a simple text column and then perform the lookup in your App. 
    so in your case I would add a Drop-down field to your App that gets its Items in DataSource B and saves the selected value in the simple text column in DataSource A

  • issac_franklin Profile Picture
    113 on at

    Hey @RogierE 

     

    Thank you for the suggestion.

     

    I have a different lookup column which works very well, however the selection is manual here.

     

    I tried following your suggestion to create a drop down field and have the source as DataSource B. It works well except a minor thing (This dropdown doesn't scroll along with the form that I have). Do you have any thoughts here ?

  • RogierE Profile Picture
    879 Moderator on at

    Could you share a screen shot? I’m not sure I understand “doesn’t scroll along” part. 🤓

  • issac_franklin Profile Picture
    113 on at

    @RogierE I managed to fix the scrolling part.

    However, still I couldn't get this working as expected.

    Now I have below formula on OnSelect of the button

     

    "SubmitForm(OrderForm);"

     

    And In onSuccess of the form, I have the below formula. But it just creates the new row in list but doesn't patch the value of dropdown to the text field

    Patch(
     Listname,
    OrderForm.LastSubmit,
     Defaults(Listname),
     {
     CostCenter1:Dropdown.Selected.Value
     }
    );

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard