Showing results for 
Search instead for 
Did you mean: 
New Member

Lookup and write data to field from dropdown



I have been using SharePoint for quite a while and have just started dipping my toe in the water of PowerApps.


I have a SharePoint list where I am customising the data input form with Power Apps.


I have a data table and a reference table. The reference table contains the following fields

- contractTitle

- contracCode

- wbsCode

- costheadTitle

- costhead


Th bold fields contain user friendly data that the user should select from a drop down. Each contractTitle has a single contractCode and wbsCode, but multiple costheatTitle records.


when you create a new record in the data table, the user should pick the relevant contractTitle and I want the form to then lookup the corresponding wbsCode and write it into a wbsCode column in the data table. 


I have been trying all evening to get this to work by using the Patch function in the "On Change" Action, but it just doesnt work. I think it is because the data isnt actually written to the record until it is saved. Any pointers would be appreciated.




Super User
Super User

@DenmanRC Could you please share the code you have for Patch and also some screen shots!

Helpful resources

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,966)