web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Searching based on cus...
Power Apps
Unanswered

Searching based on custom name with space

(0) ShareShare
ReportReport
Posted on by 36

My Requirement is to search outlook based employee name column i.e. Tendulkar,Sachin 

 

I want to search like Tendulkar space Sachin i.e Tendulkar Sachin.

 

Please provide Canvas app code to achieve above functionality.

 

 

Thanks & Regards,

Mahesh

I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at
    Re: Searching based on custom name with space

    Hi @Mahesh005 ,

     

    You could use Substitute to replace the ',' with ' '.

    Substitute(TextInput1,","," ")

     

    Best Regards,

    Bof

  • Mahesh005 Profile Picture
    36 on at
    Re: Searching based on custom name with space

    Hi @v-bofeng-msft 

     

    When i do that with add column. it is throwing error in the on check and on uncheck patch formulae like added column is missing in the following collection.

     

    Thanks,

    Mahesh

  • v-bofeng-msft Profile Picture
    on at
    Re: Searching based on custom name with space

    Hi @Mahesh005 ,

     

    Could you please show me your formula ?

     

    Best Regards,

    Bof

  • Mahesh005 Profile Picture
    36 on at
    Re: Searching based on custom name with space

    I wrote formulae in gallery items as follows

    filter(search(addcolumns(collectionname,"Columnname",Substitue(EmployeeName,",",""))txtempname.text,"Columname")

    Then it is throwing error in the below patch syntax like the added column does not exist or invalid arguemnts

     

    Patch(collectionname,thisitemm{ isactive: true})

  • Mahesh005 Profile Picture
    36 on at
    Re: Searching based on custom name with space

    Itried as below, but still throwing error

    patch(dropcolumns(collectionname,"Columnname",thisitem,{IsSelect:Active},) 

     

    Thanks & Regards

    Mahesh

  • v-bofeng-msft Profile Picture
    on at
    Re: Searching based on custom name with space

    Hi @Mahesh005 ,

     

    Search(
    AddColumns(collectionname,"Columnname",Substitue(EmployeeName,",","")),
    txtempname.text,
    "Columname"
    )

     

    Best Regards,

    Bof

  • Mahesh005 Profile Picture
    36 on at
    Re: Searching based on custom name with space

    it is working but When i do addcolumns it is trhowing error patch on check and uncheck.

  • v-bofeng-msft Profile Picture
    on at
    Re: Searching based on custom name with space

    Hi @Mahesh005 ,

     

    Please try:

    Filter(
     collectionname,
     Substitue(txtempname.text," ",",") in Columname ||
     txtempname.text in Columname
    )

    Patch

    Patch(collectionname,ThisItem,{IsSelect:Active}) 

    Best Regards,

    Bof

  • Mahesh005 Profile Picture
    36 on at
    Re: Searching based on custom name with space

    No error but not working.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard