SharePoint Online
64 TopicsSharePoint online add a notification message in top banner of the site
I want to display a alert message to users at the top of the site before site migration in SP online. In SP 2016 i have implemented using powershell usercustom actions that is working fine and i did the same in online, but here it is not working. Below attached the working version of SP 2016 image. Please suggest any solutions or approach.18KViews0likes1CommentSet-PnPListItem - Multiple User Field
Hey Folks, Trying to update a List item via PowerShell, the column is a multiple user field. The updated users are currently in an array of Email Addresses which is causing an error. Wondering if anyone knows how I could easily convert this to a string or if there's a workaround? Thanks!15KViews0likes10CommentsUsing PowerShell to change page banner image
Hi Folks, Currently have a automatic site creation tool up and running. I know using the PnP engine no content will be included in the template, but is there any way on the newly created site on the main home page (Modern Page) I can change the banner image using PowerShell to reference an image stored somewhere else? Thanks!Solved8.3KViews0likes4CommentsAdding People to the People Web Part Programmatically (using PowerShell maybe?)
There doesn't seem to be any documentation relating to the modern web part components. I can add a modern web part component to the page like this: Add-PnPClientSideWebPart -Page $home -DefaultWebPartType People But I cannot work out how to actually add people to it. Any thoughts greatfully received (although I don't hold out much hope -- it's very quiet around here).Solved8.3KViews1like6CommentsSharePoint Online - Issue with REST API call on a List exceeded the threshold limit
I have a List in a SharePoint Online site collection which has exceeded 5000 items. I have indexed the columns that are needed in the REST API filter query during list creation itself. Below is the Rest API query I use to fetch the data from the list. https://people1v02.sharepoint.com/sites/spfxqaw44/_api/web/lists/getByTitle('Announcements')/items?$top=4999https://people1v02.sharepoint.com/sites/spfxqaw44/_api/web/lists/getByTitle(%27Load%27)/items?$filter=Title&xsdata=MDV8MDF8fGEyZmI0MWMzNTI0YjRkZjQyMjFlMDhkYWQ4ZWJmM2Q4fDVmMDdlNTU1ZDk5ODQ5MDBiNWM0OTAzZmFlMzA2MjgzfDB8MHw2MzgwNjA4MDUxNDYyODg2NzB8VW5rbm93bnxWR1ZoYlhOVFpXTjFjbWwwZVZObGNuWnBZMlY4ZXlKV0lqb2lNQzR3TGpBd01EQWlMQ0pRSWpvaVYybHVNeklpTENKQlRpSTZJazkwYUdWeUlpd2lWMVFpT2pFeGZRPT18MXxNVFkzTURRNE16Y3hNemszTWpzeE5qY3dORGd6TnpFek9UY3lPekU1T2pjMllUQTBNV0U0TFdGa1pUQXROR1F5T0MxaVkyUTBMV1ZpTVdFMFl6QTJPVFF6Wmw5a1pUSmhaalE0T1MwMlpXSTNMVFJqWXpNdFlURmpZeTFrT0RJeE5UUXlORGRoTkRSQWRXNXhMbWRpYkM1emNHRmpaWE09fDMyZGZjY2RiMmU5ZTRkNGQyMjFlMDhkYWQ4ZWJmM2Q4fGUxNWM3MGM5MmFmOTQ4MmM5ZDkxNzFhMmEzMTI5OGYz&sdata=eXFZS28xbGZvcCtOWmN0MW5yZjBvMjNZWFdVdURMakxRVTNEWEwyN29tRT0%3D&ovuser=5f07e555-d998-4900-b5c4-903fae306283%2Cnagarajan.muthukumar%40eleviant.comhttps://people1v02.sharepoint.com/sites/spfxqaw44/_api/web/lists/getByTitle('Announcements')/items?$top=4999 &$filter=(Expires ge '2022-12-06T18:30:00.000Z') and (RecordDate le '2022-12-06T18:30:00.000Z') and IsActive eq 1 and WorkflowCompleted eq 1 &$select=Id,Title,Expires,ShortDescription,Created,RecordDate,Attachments,LangTrans&$expand=AttachmentFiles&$orderby=RecordDate desc The above query gave me an error as threshold limit exceeded. So I have created a simple list and made a API call as below, https://people1v02.sharepoint.com/sites/spfxqaw44/_api/web/lists/getByTitle(%27Load%27)/items?$filter=Title&xsdata=MDV8MDF8fGEyZmI0MWMzNTI0YjRkZjQyMjFlMDhkYWQ4ZWJmM2Q4fDVmMDdlNTU1ZDk5ODQ5MDBiNWM0OTAzZmFlMzA2MjgzfDB8MHw2MzgwNjA4MDUxNDYyODg2NzB8VW5rbm93bnxWR1ZoYlhOVFpXTjFjbWwwZVZObGNuWnBZMlY4ZXlKV0lqb2lNQzR3TGpBd01EQWlMQ0pRSWpvaVYybHVNeklpTENKQlRpSTZJazkwYUdWeUlpd2lWMVFpT2pFeGZRPT18MXxNVFkzTURRNE16Y3hNemszTWpzeE5qY3dORGd6TnpFek9UY3lPekU1T2pjMllUQTBNV0U0TFdGa1pUQXROR1F5T0MxaVkyUTBMV1ZpTVdFMFl6QTJPVFF6Wmw5a1pUSmhaalE0T1MwMlpXSTNMVFJqWXpNdFlURmpZeTFrT0RJeE5UUXlORGRoTkRSQWRXNXhMbWRpYkM1emNHRmpaWE09fDMyZGZjY2RiMmU5ZTRkNGQyMjFlMDhkYWQ4ZWJmM2Q4fGUxNWM3MGM5MmFmOTQ4MmM5ZDkxNzFhMmEzMTI5OGYz&sdata=eXFZS28xbGZvcCtOWmN0MW5yZjBvMjNZWFdVdURMakxRVTNEWEwyN29tRT0%3D&ovuser=5f07e555-d998-4900-b5c4-903fae306283%2Cnagarajan.muthukumar%40eleviant.com ne 'Load Test'&$top=4999 Generally the return data count should be 4999 but I am able to get only 4970 items as response data. Also this response count is unpredictable, for some other lists I got response count less than 4000. Any idea on this inconsistent behavior?6.3KViews0likes2CommentsView lists full screen
I have a huge list in SP online with many columns and the left side navigation takes up prime real estate. Initially, I wanted to be able to collapse or hide the left side navigation on this page only, but according to this post, that isn't currently possible. Is there any way to view the list in a full-screen view via the modern view, so only the list is being displayed, not the top ribbon, left navigation page, etc. ?5.1KViews1like1CommentSharepoint Framework - should developers be learning React?
This is a very basic question so many apologies! There are now two current development SharePoint Online models for SharePoint Hosted 'apps' - the App Model, where alot of devs are using Angular to build SPAs in Visual Studio - SharePoint Framework where devs are using the new spfx npm/gulp/yeoman to build client side solutions in Visual Code, of which the most favoured flavour seems to be React. When to use these? Would it be best to use React when you need to extend SharePoint Online functionality by building a client side web solution that interacts with SharePoint assets like lists and libraries? Then use Angular for apps that use SharePoint as a host but might well consume external data sources rather than SharePoint? Or do we just use one of the abvove for everything?!Solved4.3KViews1like3CommentsPossible to create site collection disclaimer pop-up with SPFx?
Hi, I'm just getting started with SPFx and development and was wondering if you had any pointers for me regarding the following: In SPO, we require some sort of disclaimer pop-up overlay (not simple js alert) that appears as soon as a user visits a certain site collection. Can something like this be achieved with SPFx? On https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/overview-extensions there's a note stating that there is a known bug with list and library extension support in the classic experiences. Thanks for your help getting me started.Solved4.2KViews0likes2CommentsCan't turn off "Visible on New Button" for Content Type using PnP PowerShell
Hi, I'm having trouble turning off the "Visible on New Button" option for a Content Type on a Document Library. I'm trying to use the "UniqueContentTypeOrder" to do that. So far, it's not taking -- any thoughts? Snippet of script below. Many thanks. $doclib = Get-PnPList -Identity "Quotes" -Includes RootFolder.UniqueContentTypeOrder $lct = $doclib.ContentTypes $ctx.Load($lct) $ctx.ExecuteQuery() $rootFolder = $doclib.RootFolder $lucto = $doclib.ContentTypes | ?{$_.Name -ne "<Content Type I'm Trying to Hide>"} $list = New-Object 'System.Collections.Generic.List[Microsoft.SharePoint.Client.ContentTypeId]' foreach ($i in $lucto) { $id = $i.Id $list.Add($id) } $rootFolder.UniqueContentTypeOrder = $list $rootFolder.Update() $doclib.Update()4.1KViews0likes4Comments