User Profile
AAminM
Brass Contributor
Joined Apr 02, 2020
User Widgets
Recent Discussions
Re: SharePoint Online - Enable Scheduling via CSOM on Modern Pages (Site Pages)
Hi miguelisidoro, In case you are still interested in knowing this, or maybe someone else comes across this question. Scheduling publishing for a SharePoint modern page in SharePoint online can be done as follows. Using PNP PowerShell Connect-PnPOnline https://test.sharepoint.com/sites/test -Interactive $page = Get-PnPPage "test.aspx" $date = get-date $date = $date.AddDays(1) $page.SchedulePublish($date) Using Rest https://test.sharepoint.com/sites/test/_api/sitepages/pages(6171)/schedulepublish Note: 6171 is the page item Id, which can be found in Site Pages library. Moreover, please note that the above REST call works if the page item has values in OData__ScheduledVersion and OData__PublishStartDate. OData__ScheduledVersion: is the version number to publish, which should be the value of the property owshiddenversion. OData__PublishStartDate: is the publishing date/time1.6KViews0likes0CommentsRe: Add custom action with add-pnpcustomaction
Hi MarcoMangianteIM, You can hide actions in command bar in modern experience using View formatting. More information about this can be found https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-formatting and https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting. To hide the Delete button from the commandbar, the view formatting code should be as follows: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json", "commandBarProps": { "commands": [ { "key": "delete", "hide": true } ] } } Note: this is hiding the delete button from command bar, but still will be shown in the file/item context menu. If needed to be removed completely, I would prefer then controlling this using permissions by creating a new https://sharepointmaven.com/how-to-create-a-custom-permission-level-in-sharepoint/, i.e., to allow users to create, and edit items, but not to delete items.3.2KViews0likes0CommentsRe: Hide Modern List webpart toolbar, view formatting
Luckily, currently this part is more customizable using view formatting, as described https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-commandbar-formatting. As it's not possible to hide the whole command bar, you will need to hide actions one by one. This is only for list views; however, if you are using the list webpart, then hiding the whole webpart is certainly possible using the webpart properties.2.5KViews0likes0CommentsRe: Whiteboard with external participants
Hi all, OneDriveLoopSharingCapability and CoreLoopSharingCapability are no longer applicable and can be disregarded. To enable Whiteboard with external participants you will need to run the below command Set-SPOTenant -AllowAnonymousMeetingParticipantsToAccessWhiteboards On More info can be found here https://support.microsoft.com/en-us/office/manage-whiteboard-sharing-80b36584-3b74-4fd9-a7dd-a5fa170a0bba10KViews2likes4CommentsRe: Stream (on SharePoint) Videos Responsiveness
Hello AnubhavNigam, Many thanks for your reply. Yes, you guessed it right. It's the two black vertical sections on video sides. I've attached here a picture for reference. Meanwhile, I managed to find a solution for that by using Embed webpart, instead of File Viewer webpart. Hence, you can ignore this post. Thanks again.1.2KViews0likes0CommentsStream (on SharePoint) Videos Responsiveness
Currently, It's impossible to add a Stream video (hosted in SharePoint) whether using Embed webpart or File Viewer webpart with responsiveness disabled. For example, we have a horizontal video which we would like to add to three column section SharePoint page, but it's always added with responsiveness enabled; so, we get big black horizontal lines on both video sides. Even in the Embed webpart if we set Height and Width, the video gets resized automatically and doesn't respect the set Height and Width. This issue is not persistent in Youtube webpart for example.1.3KViews1like2CommentsRe: "Friendly" date display format combine with custom json formatting
Ian Bruckner Hi, I know, this is an old thread, but answering it in case other people are struggling with this. To achieve this have txtContent value as [$ColumnInternalName.displayValue] not @currentField. For example, my full code is as follows for the column AppSecretExpiration. { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "debugMode": true, "txtContent": "[$AppSecretExpiration.displayValue]", "style": { "color": "=if(Date(@currentField) <= @now, '#ff0000', '')" } }5.6KViews2likes1CommentRe: Hide "Export to excel" button
Hi, Tomislav Karafilov, You can get rid of this Export to Excel button in ribbon, if you grant users custom permission level which doesn't have the below permissions: 1. Use Remote Interfaces - Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site. 2. Use Client Integration Features - Use features which launch client applications. Without this permission, users will have to work on documents locally and upload their changes. Hence, after creating this custom permission level, go to the list settings --> Permissions --> break inheritance, and then grant the users only this custom permissions level. Once done, these users won't see the option in the ribbon anymore. Note: If users have Limited Access permission assigned to them in the list, they will still be able to see the Export to Excel option, as Limited Access permission enables this option... However, please note that users can still connect to the list if they make this connection from Excel --> Import Data from SharePoint7.2KViews0likes0CommentsRe: Converter team site to communication site
In case someone is still reading this. Yes, it's possible to enable the communication site experience on a classic team site. However, this site must be classic (not connected to M365 group), and root site of the site collection. To achieve this you need to use PowerShell command Enable-SPOCommSite or PNP PowerShell command Enable-PnPCommSite More information about this command, its effect and requirements can be found here https://docs.microsoft.com/en-us/sharepoint/modernize-classic-team-site27KViews1like0CommentsRe: Pages library doesn't open pages
In case someone is still wondering why he/she has this issue. Creation of modern pages is supported in the "Site Pages" library only, i.e. /SitePages/ not /Pages/ Reference: https://support.microsoft.com/en-us/office/create-and-use-modern-pages-on-a-sharepoint-site-b3d46deb-27a6-4b1e-87b8-df851e503dec#:~:text=Creation%20of%20modern%20pages%20is%20supported%20in%20the%20Site%20Pages%20library%20only2KViews0likes0Comments
Recent Blog Articles
No content to show