SharePoint PnP Modern Search - FULL Walkthrough Series

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 72

  • @matthewgrayson4084
    @matthewgrayson4084 8 місяців тому +1

    Thanks for this excellent tutorial, Steve. Could you elaborate on how you customized the styling at 38:26? The adjustment to make the output multicolumn is great.

    • @stevecorey365
      @stevecorey365  8 місяців тому

      I used the browser's developer tools, where you can see (and customize) the CSS on the fly. From there, I experimented and found what CSS I needed to add. That's how I came up with the snippet that I pasted in. This method is much faster than saving and refreshing constantly, not knowing if what you just added in will even work.

  • @banihas22
    @banihas22 10 місяців тому +4

    Love it! I'm a beginner when it comes to search in SharePoint so these video's are very helpful.

    • @stevecorey365
      @stevecorey365  10 місяців тому +1

      Thanks for the feedback! I've got lots of videos targeting beginner to intermediate level SharePoint topics, so take a look if you'd like to learn more!

  • @TheSzorcsi
    @TheSzorcsi 6 місяців тому +1

    Hi, which version of PnP search do you use? I added the code to make the people show in multiple columns, but as soon as i publish it and refresh the page, the results disappear.
    It still shows “x results” and then a blank page.
    If i edit the page again, it still shows blank page. I’m wondering if there’s an issue with custom code in the 4.10.2 version?

    • @stevecorey365
      @stevecorey365  6 місяців тому

      I've upgraded since then, but it would have been the latest version available at that time. I'd recommend debugging via developer tools to see what's going on. There could be some CSS rule that's causing the issue.

  • @cnchandroo
    @cnchandroo Місяць тому +2

    Hi @Steve happened to see this video on PnP search while searching something else and this video is very informative. Thanks for this. Regarding People search, I do have one clarification, is there any way we can confine the people search to specific M365 security group of users instead of all the users in the organization.
    Thanks.

    • @Lance-qg2xo
      @Lance-qg2xo Місяць тому

      Did the PnP - Search Results works on you? cause I'm having an error saying ([HTTP]:500)

    • @stevecorey365
      @stevecorey365  Місяць тому

      Not to my knowledge. This was searching the user profile database in SharePoint, which predates M365 groups.

  • @yvonnemairose6100
    @yvonnemairose6100 2 дні тому +1

    Great video, do you have one showing how to add a search box to a sharepoint LIST?

    • @stevecorey365
      @stevecorey365  2 дні тому +1

      Well you've got the Microsoft Search bar at the top of lists. Other than that, you cannot add web parts to the list interface (or page).

  • @efmchale
    @efmchale 2 місяці тому +1

    Is this safe to use? My company doesn't like to use open source stuff. How might I convince them?

    • @stevecorey365
      @stevecorey365  2 місяці тому

      Some organizations have strict policies against OSS, but this is a very mature product with a very large user base. I'd have an honest conversation about the product with your IT and discuss what their objections are to this specifically, and how it can be remiediated.

  • @Pbear74
    @Pbear74 Місяць тому +1

    Is there a way to connect the results web part to the pnp search box and the sharepoint search box?

    • @stevecorey365
      @stevecorey365  Місяць тому

      It's not currently possible to connect it to the SP search box.

  • @BennyTheDane
    @BennyTheDane 5 місяців тому +1

    Great content thanks Steve!
    I'm having a spot of bother with the filter, I've managed to add the Department as a filter, however I'm struggling to get the Office location working. Looking at the selected properties of the search results I can't find BaseOfficeLocation. I've checked the search schema like you did 27:46 and mine looks identical so unsure why it's not returning.
    Any ideas, I've been looking into it for the last 2 days and I'm slowly losing my mind!

    • @stevecorey365
      @stevecorey365  5 місяців тому

      You may have a different user profile property that stores the office location. You can see all your profile properties in SP Admin, if you go to the user profile properties screen.

    • @BennyTheDane
      @BennyTheDane 5 місяців тому

      @@stevecorey365 Thanks Steve, you were spot on! BaseOfficeLocation was mapped to People:SPS-Location, I removed this and mapped it to People:Office instead. It took a few hours but it did then start working

  • @RyanHoward-l7v
    @RyanHoward-l7v 8 місяців тому +1

    I'm using the detailed list and am trying to get the Department to show up and I'm ripping my hair out. The only managed property that is showing up for me to enable is DepartmentID. I've checked managed properties in SharePoint admin center and it looks the same as yours, so I have no idea what's going on.
    I got DepartmentID mapped as a backup, however it's only populating my individual department, the rest of our 700 results are returning nothing.

    • @stevecorey365
      @stevecorey365  8 місяців тому +1

      The list is slow, so it may take a while for the dropdown list to populate. I'm a bit impatient, so most times I'll go to the last tab of the search results web part and use the import/export feature to select my managed property manually.

    • @RyanHoward-l7v
      @RyanHoward-l7v 8 місяців тому

      @@stevecorey365 Thanks! That worked perfectly!

  • @Hikarihiiro
    @Hikarihiiro 6 місяців тому +1

    Hi this is really nice and helpful video. I'm able to use it 🙂, however I cannot find the "reset query on clear" in pnp search box? Did MS remove that feature?

    • @stevecorey365
      @stevecorey365  6 місяців тому

      Not to my knowledge! I checked my tenant and it's still there. I also checked the official GitHub repo and it's there too.

  • @GarethDoherty1985
    @GarethDoherty1985 7 місяців тому +1

    Absolutely great video. good job.
    I have done a basic search page which allows our users to search for Documents based on their refinable properties. This all works great. What I want though is to allow the users to bulk download the documents returned in the search results. This is to support a business function where we transfer large numbers of documents between companies.
    Do you have any advice on whether this is possible?

    • @stevecorey365
      @stevecorey365  7 місяців тому +1

      You could try using the Path managed property, which is the direct URL to the item. In many cases, that'll result in a download, but it won't cover all cases. PDFs will likely still open in the browser.

    • @GarethDoherty1985
      @GarethDoherty1985 7 місяців тому +1

      @@stevecorey365 I was wondering is a PCF Component which could read the paths to all the search results and throw them to a power automate flow, along with a destination (normally they want them in another SPO site) and that flow can churn through them.

    • @stevecorey365
      @stevecorey365  7 місяців тому

      Possibly, but how would you get that into the PnP MS search results?

    • @GarethDoherty1985
      @GarethDoherty1985 7 місяців тому +1

      @@stevecorey365 I've never built a PCF component before but I have assumed that if I built one and added it as a web part to the search page, then it would have access to the context of other things on the page?

    • @stevecorey365
      @stevecorey365  7 місяців тому +1

      @@GarethDoherty1985 No, you can't assume you'll have access to retrieve data from other web parts on the page. In the scenario you're describing, you'd have a power platform component trying to access a native SharePoint page web part. I don't think there's any way to do that. Normal SPFx web parts can do that, but only if they're using a common framework (like PnP MS does).

  • @magdalenaviurquez3600
    @magdalenaviurquez3600 10 місяців тому +2

    HI, Thank you for your helpful video, but do you have an example from a List. How can I use the columns from the SharePoint List into the Managed card fields.

    • @stevecorey365
      @stevecorey365  10 місяців тому

      I don't believe I have a specific example of this, but the process is exactly the same. The difference is that you use the managed properties connected to your list instead of your library. Everything else would be the same.

    • @stevecorey365
      @stevecorey365  10 місяців тому

      Also keep in mind that since PnP Modern Search is using SP Search, you don't ever use a list/library directly. Instead, you access that data via SP Search in the form of managed properties. I have a playlist that covers SP Search if you're interested!

  • @CraigArnoldt
    @CraigArnoldt 3 дні тому +1

    at 28:53, why did it drop from 21 users to 17?

    • @stevecorey365
      @stevecorey365  3 дні тому +1

      Because once I added the BaseOfficeLocation filter (which is how we connected the verticals.value expression), it eliminated all results that didn't have a value in that field. I had a bunch of test users on that tenant that didn't have a value, leaving 17 users total that DID have a value. Make sense?

    • @CraigArnoldt
      @CraigArnoldt 3 дні тому

      @@stevecorey365 yes, thankyou.

  • @szaboadam7461
    @szaboadam7461 5 місяців тому +1

    Hi,
    i'm looking for a way to be able to filter on the "Skills" and "Projects" properties from the poeple profiles/cards/Delve. But these do not show up as property I could add. So I can not add them as filters and neither does the search from the search box finds them.
    Funny enough though if I add "Skill:SharePoint" to the query template on the search reults webpart it filter correctly... -.-'
    Any Idea how could I get those informations to my people directory?

    • @stevecorey365
      @stevecorey365  5 місяців тому

      You'll probably need to create managed properties to map to that data. That should take care of the problem!

  • @vaneetsharma6623
    @vaneetsharma6623 10 місяців тому

    awesome :)

  • @Word293
    @Word293 7 місяців тому +1

    How about connecting the search box to start displaying results as people type in characters? I've already turned on enable query suggestions on page 2 as well as turned on the default SharePoint provider API. I also messed with some settings on Page 3 to try and connect the search box to the results source but not having any luck with that either.

    • @stevecorey365
      @stevecorey365  7 місяців тому

      Microsoft can and will throttle your connection if you start hammering the SharePoint APIs with requests, which search-as-you-type would cause. I like the search-as-you-type experience as a user, but it's not compatible with SharePoint Online.

  • @yannickbohm1623
    @yannickbohm1623 10 місяців тому +1

    Great Video!!
    Is there any way to not display inactive accounts in people search? Unfortunately I cannot figure out how to deploy the refinement filter correctly. I would like to set it to EnabledAccount:equals("True") but this doesn't work at all. Do you have any hints?

    • @stevecorey365
      @stevecorey365  10 місяців тому +1

      The property you're looking for is "SPS-HideFromAddressLists". If you add something like "-SPS-HideFromAddressLists:1" to your search query, it should prevent disabled and hidden accounts from showing up.

  • @yahyakhattab5444
    @yahyakhattab5444 10 місяців тому +1

    Hello Steve,
    I'd like to attend more of your sessions because I find your tutorials to be quite helpful.
    I hope you can point me in the right direction with my question right now.
    In one of my library documents on SharePoint Online, I made a custom template. In essence, I made it in Word and uploaded it to the document library as a template. So far, everything is fine; however, the browser opens to a blank page when I click the template. I've tried Chrome, Edge, InPrivate, and clearing the cache, but the new Word document from the template continues to open as a blank page. Nevertheless, it generated a new document automatically in the library, and when I access it, Word opens without any problems on a desktop or online browser. I would like to know if there is a method to open it in a new tab that is ready for editing rather as the library having to be visited in order to locate the freshly created document.
    Thanks in advance,
    Yahya

    • @stevecorey365
      @stevecorey365  10 місяців тому

      You may have a different content type set as your default, or you may have not uploaded the template correctly. It's tough to say without troubleshooting it interactively.

  • @gabriella-meghanandrews951
    @gabriella-meghanandrews951 10 місяців тому +1

    Hi Steve...I'm at the beginner stage with PnP Modern Search V4, I'm using it very basically for searching Lists in SP. What i'm struggling with is how to get it to seach based on a list column 🤔

    • @stevecorey365
      @stevecorey365  10 місяців тому

      When you're searching via SP Search, you aren't searching data in list columns. Instead, you're searching data in managed properties. The column name will typically be different than the list column. Here's a video to explain more - ua-cam.com/video/3tHg2rsFhcs/v-deo.html

  • @Voltzz1982
    @Voltzz1982 10 місяців тому +1

    Can a Sharepoint owner do this or is it allowed only by IT admins? I would've liked to see that part of the installation. I don't understand why it was skipped at 1:24

    • @stevecorey365
      @stevecorey365  10 місяців тому

      Any site owner can add the app to their site, and is added like any other app. That's why it was skipped. The app needs to be installed into the app catalog by a SharePoint Admin, however. That must happen before site owners can add it to their sites.

  • @vvaassaanntthh
    @vvaassaanntthh 3 місяці тому

    Hi great video. However I have an issue that I need recommendation on.
    I am unable to get a metadata column (that i added to the sharepoint library) to show up in the pnp search results webpart. Its not displaying in the "manage columns" list of columns when I edit the search result webpart. any advice what I am missing?

    • @stevecorey365
      @stevecorey365  2 місяці тому

      Make sure that you have a managed property defined for that column in the search schema.

  • @peterrostkjr1662
    @peterrostkjr1662 10 місяців тому +1

    This is SO useful! I'm currently building a new intranet for my company and was looking for this exact solution. THANKS!

  • @W.Wallace73
    @W.Wallace73 7 місяців тому +1

    Simply amazing, I've been looking for this for months. In fact when I was finishing the video I said to myself. Well: I just need to be able to show people in more than one column and all of a sudden you did it... Thank you very much.
    But I have a small problem. Although I have placed the code properly, none of the three icons are being displayed. Any ideas?
    Again, thank you very much...!

    • @stevecorey365
      @stevecorey365  7 місяців тому

      I recommend using your browser's developer tools to see what's going on. Debug the CSS and HTML there, then make adjustments in your templates and/or expressions.

    • @W.Wallace73
      @W.Wallace73 7 місяців тому

      Hello @stevecorey365 , thank you for replying. I managed to solve the error; it was a typo. However, I found a couple of details that were not addressed in the tutorial. For example, how do I filter so that only active accounts are displayed

  • @Lance-qg2xo
    @Lance-qg2xo Місяць тому

    Hello, I'm getting an error on the PnP - Search Results and it tells (HTTP]:500). I hope someone will help me.

    • @stevecorey365
      @stevecorey365  Місяць тому +1

      I recommend having look at the developer tools to see if there are any console errors.

  • @rhapsody3502
    @rhapsody3502 6 місяців тому +1

    Hi Steve :) Great walkthrough series, thank you so much! I've definitely learnt some nifty things and will be using them today. One thing I wanted to ask you about as I can't find it mentioned online (unless I am not searching correctly) is whether the Search verticals can be configured to be bold/bigger or a different colour for instance - have you ever been asked to change the look and feel of the Search verticals?

    • @stevecorey365
      @stevecorey365  6 місяців тому +1

      Thanks so much for the feedback! I don't think the verticals can be customized outside of the extensibility model (which would be pro code development). I know the filters web part can be customized via handlebars templates, though.

    • @rhapsody3502
      @rhapsody3502 6 місяців тому

      @@stevecorey365 Thank you Steve :)

  • @kyleparker5535
    @kyleparker5535 3 місяці тому

    How can I filter out the users disabled in my people list? Also the shared users.

    • @stevecorey365
      @stevecorey365  2 місяці тому

      Most people use the "SPS-HideFromAddressLists" managed property to exclude disabled and otherwise hidden users

  • @Fideska1
    @Fideska1 3 місяці тому

    Thanks for your helpful video. How can i add user Groups as filter?

    • @stevecorey365
      @stevecorey365  2 місяці тому

      I'd need more information to help you. Filtering by department is common, but I haven't heard of user group filtering. Most users aren't aware of group names, so that info wouldn't be that useful

  • @ForGoodAdvisory
    @ForGoodAdvisory 4 місяці тому

    New user! Going to use this for a project I am working on. I want to have some pre-defined queries that can be run at the tap of a button (or something) so that this non-profit can have consistent searches for their specific programs (am I on the right track in researching PnP?). This video is very helpful!!!

    • @stevecorey365
      @stevecorey365  4 місяці тому

      Thanks so much for the feedback! PnP Modern Search can definitely help!

  • @squareggs
    @squareggs 10 місяців тому

    Newbie here, this was really helpful and as always clear and easy to understand, thanks 🤩

  • @KasperBoLarsen
    @KasperBoLarsen 10 місяців тому

    I have seen PnP Modern Search Web parts a few times before 😅 Being one of maintainers helps, and a big thanks to Steve for the videos ❤

    • @KasperBoLarsen
      @KasperBoLarsen 10 місяців тому

      And by the way, be very careful with Trim duplicates. It sounds like a good idea but the duplication algorithm is defect, so I advise NOT to trim duplicates

    • @stevecorey365
      @stevecorey365  10 місяців тому

      I wouldn't have this cool solution to work with and create content for if it weren't for developers like you to create and improve this! Thank you!
      I've seen some weird behavior with Trim Duplicates as well, where valid results are omitted despite being non-duplicates. I'll put out a short to mention this. Thanks for the reminder!