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 / Save ComboBox search s...
Power Apps
Unanswered

Save ComboBox search string using gallery

(0) ShareShare
ReportReport
Posted on by 6,048 Super User 2024 Season 1

I have ComboBox inside my form which is referencing choice field of sharepoint. When choice is not available in the combobox whatever you write in the search box of combobox will be added to choices in sharepoint. 

q1.jpg

Above is my form. Below is Update property of Category:

 

If(
 !IsBlank(DataCardValue6.Selected),
 DataCardValue6.Selected,
 If(
 !IsBlank(DataCardValue6.SearchText),
 {
 Value: DataCardValue6.SearchText,
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
 },
 Blank()
 )
)

 This all works perfectly.

 

Problem is. I have another list where i enter data using gallery. I want to achieve same thing in that. But, i don't know how to approach this. Below is the picture of gallery where i enter data. On Click of Add button PowerApps will take data from above dropdowns and pre filled data. User will only have to select month and Budgt.

q2.jpg

 

Each of this control have onChange property which stores their value into collection. And finally on save button it will patch that collection to sharepoint.

Code on OnChange:

 

 

If(
 ThisItem.ID in colBudgetTracker.ID,
 Update(
 colBudgetTracker,
 LookUp(
 colBudgetTracker,
 ID = ThisItem.ID
 ),
 {
 Company: Dropdown1_2.Selected,
 OfficeLocation: Dropdown1_3.Selected,
 Year: Dropdown1_4.Selected,
 ID: ThisItem.ID,
 Month: Dropdown1_11.Selected,
 PlannedExpense: Value(TextInput1_1.Text),
 Rate:Value(TextInput1_7.Text)
 }
 ),
 Collect(
 colBudgetTracker,
 {
 Company: Dropdown1_2.Selected,
 OfficeLocation: Dropdown1_3.Selected,
 Year: Dropdown1_4.Selected,
 ID: ThisItem.ID,
 Month: Dropdown1_11.Selected,
 PlannedExpense: Value(TextInput1_1.Text),
 Rate:Value(TextInput1_7.Text)
 }
 )
)

 

Categories:
I have the same question (0)

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard