sharepoint online – Checking out with CSOM does not prevent updating / renaming / deleting

I am trying to prevent data changes for a file using CSOM, but even after checking out the file, the user interface can still be updated, deleted, and renamed. Is there any way to prevent this from happening, ie locking / checking out the file so that it cannot be edited in any way?

My code looks like this:

          SPClient.File newFile =
                context.Web.GetFileByServerRelativePath(serverRelative);

            context.Load(newFile, f => f.CheckOutType);
            context.ExecuteQuery();

            if (newFile.CheckOutType == SPClient.CheckOutType.None)
            {
                newFile.CheckOut();                    
                context.Load(newFile);
                context.ExecuteQuery();
            }

sharepoint online – React Calendar reports errors in Internet Explorer 11

I am new to SP dev fx components and have used react-calendar linked reaction calendar. I work well with Chrome, Firefox, but there are bugs

Object doesn't support property or method 'from'

in Internet Explorer. I saw that it is not supported with IE11 because of Polyfill. I tried to add

import 'core-js/modules/es6.promise'
import 'whatwg-fetch'

import 'core-js/modules/es6.array.iterator.js'
import 'core-js/modules/es6.array.from.js'

import 'es6-map/implement'

but now I got this error

in Uncontrolled(Component)in ForwardRefin divin divin divin Unknownin Unknown

I am very new to this area and not sure where else to look. Can someone suggest what went wrong.

Greetings,
Saghir

sharepoint online – Custom Power Apps list form: where is the app stored?

Suppose we customized a SharePoint list using Power Apps. Can someone please explain where the published Power Apps files (app package) are stored?

https://make.powerapps.com/ doesn't seem to have listed these apps:
Enter image description here

I also noticed that the following folder was created in lists customized with Power Apps: {ListURL} / _ PowerAppsCache / {AppID} /:
Enter image description here

I looked at it and am not sure if these are all of the PowerApps files. Is there another location that contains all the PowerApps files? Or maybe a power app is actually created on make.powerapps.com but somehow hidden from the user interface? Can someone shed some light on the dark?

sharepoint online – news on the Hub News web part

I am new to SharePoint and am struggling with news.

I have a hub site that serves as the homepage for all teams, with each group having its own site.

I was hoping the Marketing website could publish news articles that would appear in the Hub website's news web part.

However, when I select the source for the web part, can't I see any of the websites associated with this hub?

Enter image description here

Is there any way to manipulate this? If not, what have I done wrong?

sharepoint online – The user message for the column check is displayed for one millisecond

The column check does not take effect until you try to save a new item or save the changes made to an existing item.

Enter image description here

I run tests with the "This column must contain information" setting, which is set to "Yes" or "No" based on classic and modern experience, and I cannot reproduce this problem in my environment.

Maybe you can switch to another list and see if you encounter the same problem.

See my test results below:

Modern experience

Classic experience

Add a new top link navigation of the site collection to all subsites in SharePoint 2013 Online

I assume that the subsites do not inherit the top navigation. So you have to script them somehow. I usually use Powershell with CSOM to script SharePoint online.

To connect to Powershell CSOM, copy the Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll files to the script folder, and then connect to the site collection.

$siteUrl = 
$username = 
$password = 
add-type -Path ".Microsoft.SharePoint.Client.dll"
add-type -Path ".Microsoft.SharePoint.Client.Runtime.dll"
$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl)
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force 
$clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $securePassword)
$site = $clientContext.Site;
$clientContext.Load($site) 
$clientContext.executeQuery() 

Then you can see this to get ideas for the rest of the script

Define global navigation elements via CSOM – C #

The most important thing to remember is:

  • Load information
  • ExecuteQuery

sharepoint online – Is there currently a way for SPO to change the CSS classes for the modern pages?

Is there any way for SharePoint Online Modern Pages to change existing modern CSS on the pages (I think the fabric user interface is the actual style, not just the CSS style used to make classic pages look modern) ? Not what I've seen in extensions where CSS is added globally over the pages, rather than warning existing classes in CSS on the modern pages.

I would be happy about every direction (extensions? SPFX? React-Script Editor? PowerShell?) I asked a lot and there is simply not much information about it. There are special web parts that are

Of the many pages that I have created, in the following the left navigation bar needs to be removed, the space around the titles removed, the top links removed, the slider expanded to full screen etc. I really want the stuff to be complete UI can be changed as I want. Sounds like Microsoft doesn't want that … YET.

Enter image description here

SharePoint Designer is a no go for SPO. placement

web analytics