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 / SharePoint list column...
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

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @kouliscon ,

    If you are after the last record saved, the Default of the text control would be something like

    If(
     YourFormName.Mode=FormMode.New,
     Last(
     Sort(
     YourListName,
     ID,
     Descending
     ).'Vendor Name'
     ),
     ThisItem.'Vendor Name'
    )

     

    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

    thank you @WarrenBelz , is there a way to do a search or filter as i dont want only the last record saved.

     

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @kouliscon ,

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

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    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.

  • kouliscon Profile Picture
    247 on at

    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

  • Verified answer
    WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    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.

     

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @kouliscon ,

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

  • kouliscon Profile Picture
    247 on at

    @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
    156,566 Most Valuable Professional on at

    @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

    @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

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard