SharePoint 有个很特别的字段,就是标题(Title)字段,无论想要链接到项目,还是弹出操作项目的菜单,都是通过标题字段,一直以来需要的时候,都是通过将标题字段改名进行的。 其实,Sh......
2021-06-25 813 SharePoint,如何,激活,标题,字段,外,的,Menu,菜单,
SharePoint online 默认是现代视图,我们可以通过Powershell命令切换默认视图。
以下,是完成的Powershell命令:
复制代码
# This file uses CSOM. Replace the paths below with the path to CSOM on this computer.
# If CSOM is in the user's downloads folder, you only have to replace the <username> placeholder.
Add-Type -Path "C:\Users\<username>\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Users\<username>\downloads\Microsoft.SharePointOnline.CSOM.16.1.5026.1200\lib\net45\Microsoft.SharePoint.Client.Runtime.dll"
# All strings in braces < >are placeholders that you must replace with the appropriate strings.
$webUrl = 'https://<domain>.sharepoint.com/<relative-path-to-website>'
$username = '<username>@<domain>.onmicrosoft.com'
$password = Read-Host -Prompt "Password for $username" -AsSecureString
[Microsoft.SharePoint.Client.ClientContext]$clientContext = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl)
$clientContext.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
$site = $clientContext.Site;
$customActions = $site.UserCustomActions
$clientContext.Load($customActions)
$clientContext.ExecuteQuery()
$first = $true
foreach($customAction in $customActions)
{
if($customAction.Location -eq "scriptlink" -and -Not ([string]::IsNullOrEmpty($customAction.ScriptBlock)))
{
if ($first)
{
Echo " "
Echo ($webUrl + " has the following inline JavaScript custom actions")
$first = $false
}
Echo $customAction.Title
}
}
复制代码
如果保存ps1文件,请注意
Note: You can use a different file name, but you must save the file as an ANSI-encoded text file whose extension is .ps1
标签: SharePoint切换经典视图
相关文章
SharePoint 有个很特别的字段,就是标题(Title)字段,无论想要链接到项目,还是弹出操作项目的菜单,都是通过标题字段,一直以来需要的时候,都是通过将标题字段改名进行的。 其实,Sh......
2021-06-25 813 SharePoint,如何,激活,标题,字段,外,的,Menu,菜单,
在SharePoint Online中使用Designer报错,错误为:This Feature has been disabled by your administrator.找了好久发现原因,分享给大家。 1、在SharePoint Online的列表中,点击编辑列表,如下图: 2、弹出确认对话......
2021-06-25 122 使用Designer报错
最近,有朋友问开发应用程序页,都是需要先登录再访问,无法开发匿名的应用程序页。 解决方法 其实,SharePoint帮我们提供了匿名访问的应用程序页的方法,只是和普通应用程序页继承的基......
2021-06-25 996 SharePoint,应用程序,页,匿名,最近,有,朋友,问,
默认在VS2012/2013中编写SharePoint JavaScript 客户端对象模型,都没有智能感知的功能,用起来非常麻烦;其实,我们可以手动配置一下,让JavaScript可以进行智能感知,下面,让我们简单看一下整个......
2021-06-25 362 JavaScript对象模型配置
最近,在SharePoint 应用程序页中写JavaScript API,进行一些数据交互。其实,很简单的事情却遇到了问题,记录一下,希望能对遇到类似问题的人以帮助。 引用JavaScript 首先,SharePoint 应用程序页......
2021-06-25 400 SharePoint,JavaScript,API,application,pages,最近,在,