Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

(0) ShareShare
ReportReport
Posted on by 247

Hello,

 

i have a SharePoint list "A" with a column "Vendor Name" which is a "single line of text" and then i created a canvas app named "new".

 

i have data but i was wondering if i can somehow pull previous data from the "Vendor Name" field at canvas. I need this in order not to have the same vendor introduced twice e.g.

 

1) Microsoft

2) Microsoft Corp.

 

thank you

  • kouliscon Profile Picture
    247 on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    thank @WarrenBelz  as mentioned this is great!!

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    @kouliscon ,

    Just open the screen and select OnVisible from the drop-down at top left and add the code in the box to the right of this

    WarrenBelz_0-1625431747845.png

    For the Save, add it after your SubmitForm() command.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • kouliscon Profile Picture
    247 on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    @WarrenBelz  hello,

     

    you mention "add this to the screen OnVisible and your Save function" and i dont know where do i find this. 

    This is what i meant.

     

    let me know pls

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    @kouliscon ,

    Sorry I do not understand your last question. Also the OnVisible is on the Screen settings.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • kouliscon Profile Picture
    247 on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    @WarrenBelz  that is amazing thank you so much.

    i have not used the last portion

     

    UpdateContext({varMatch:Blank()})

     

    as i dont know where is the OnVisible. 

     

    Also i went at your bog (thank you) and the last portion for the Text, where is that exactly?

     

    thank you

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    @kouliscon ,

    In addition to the below, I have now done a blog on the process and expanded the functionality.

  • Verified answer
    WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    Hi @kouliscon ,

    The user needs to press enter after entering the first few matching letters. The example below is on a test list I have, but could be used on any list.

    AutoFill.gif

    There are only two things to set - the OnChange of the Text box

    With(
     {
     wMatch: 
     If(
     !IsBlank(Self.Text),
     LookUp(
     YurListName,
     StartsWith(
     YourFieldName,
     Self.Text
     )
     ).YourFieldName
     )
     },
     UpdateContext(
     {
     varMatch: 
     If(
     !IsBlank(wMatch),
     wMatch,
     Self.Text
     )
     }
     )
    )

    and the Default of the Text Box

    If(
     !IsBlank(varMatch),
     varMatch,
     Parent.Default
    )

    NOTE: Parent.Default is only necessary if the box is in a Form as you want to show the existing value once saved. You would also add this to the screen OnVisible and your Save function

    UpdateContext({varMatch:Blank()})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • kouliscon Profile Picture
    247 on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    thank you @WarrenBelz 

     

    i will try to be more clear about my request so maybe you can assist me better. 

     

    i have a SharePoint Online list and a specific column which is type of "Single line of text" we use it for introducing the Payee Company name e.g. "Microsoft"

     

    i would like to know if there is a way to when starting to inputting the name "Microsoft" to identify that the value exists already at the column and to appear.

    the reason i want to do something like that if is possible is to not have duplicate data like "Microsoft", "Micro Soft"...etc

     

    let me know if you understand and if is possible.

    thank you

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    Hi @kouliscon ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: SharePoint list column "Signe line of text" at a canvas, can i have a filter or search to bring data of previous entries?

    Hi @kouliscon ,

    Yes, you can search most things as long as you have a query that will result in a single record.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard