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 / Search a text value in...
Power Apps
Unanswered

Search a text value in Combobox

(0) ShareShare
ReportReport
Posted on by 215

Hi ,

I am trying to search a value in a multiple selection dropdown (SharePoint list field) in PowerApps form. Based on the value in the selection I need to send email to different email ids. I am storing the email in a variable and using the variable in the html to send email.

 

The problem is, the record in SharePoint is created when a form is submitted through MS form, it adds [ ] and "" to the selection like ["Altona - Melbourne"]. I cannot search "["Altona - Melbourne"]" as it adds up more quotes and throws error. Below is my code. What is the best approach to do the search text along with [" "]? Any help is really appreciated. 

 

If(
"Altona - Melbourne" in AccessRequiredSitesTxtbox.SelectedItems.Value || "Adelaide - CRO" in AccessRequiredSitesTxtbox.SelectedItems.Value ||
"Darwin" in AccessRequiredSitesTxtbox.SelectedItems.Value, Set(var_AltonaEmail,"Email1.com"), Set(var_AltonaEmail,""))

If(

"Port Melbourne - Melbourne" in AccessRequiredSitesTxtbox.SelectedItems.Value ||
"Sydney - Moorebank Training Centre" in AccessRequiredSitesTxtbox.SelectedItems.Value, Set(var_AltonaEmail,"Email2.com"), Set(var_AltonaEmail,""))

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @PowerUser19 ,

     

    I think this is where I will focus:

    the record in SharePoint is created when a form is submitted through MS form, it adds [ ] and "" to the selection like ["Altona - Melbourne"].

     

    Can you not use a flow to transform the data by removing the " and '['? If the list data is sanitised your job becomes easier.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard