我需要的是清楚地区分附件(这是一个批准,这是一个提议,这是一个PO等).这是可能的,还是仅批量工作(将所有文件连接在一起)?
谢谢,
我最近开始了一项新工作,我将使用Sharepoint 2010来设置(或实际升级)Intranet.不幸的是,我没有使用过SP2010的经验,而且最近一次触及SP2007(或虚拟服务器)是四年前的事了.
我很快就会参加一门课程,但在那之前我必须让自己变得有用.我已经设法安装了一个正常工作的Sp2010服务器,并且已经玩了一些Web应用程序和网站集,并试图了解Sharepoint Designer的工作原理,但我真的不知道我在做什么或者目标是什么我应该为自己设定实际学习有用的东西.
我也看了一些教程,但大多数都是特定于问题的(我还没有的问题)或者深入研究代码(我可能不会这样做).
那么..从哪里开始?
SPList.ContentTypesEnabled和之间有什么区别SPList.AllowContentTypes?
我需要使用客户端或服务器端来识别请求是来自Internet还是Intranet.
我想解决的问题是:我们的网站可以从互联网和内部网访问.Intranet用户(公司内部的用户)无法访问Internet.我们正在使用Google Anylitics,当Intranet用户访问该页面时,该页面需要很长时间才能上传,因为它会尝试下载(ga)从Google生成的JavaScript文件.
有解决方案吗
我有一个特定SharePoint 2010页面的列表URL.我可以访问每个页面并单击"发布"按钮.然后批准按钮发布页面.
我正在尝试自动化这个过程.我想知道PowerShell有没有办法做到这一点?
方案如下:我需要对用户(使用他的大学帐户)执行联盟身份验证到他的大学的Sharepoint站点,并获得FedAuth和rtFa cookie(我必须将其传递给SharePoint REST webservices)为了访问资源).
我做了一些尝试,但每个问题至少有一个问题:
ClientContext context = new ClientContext(host);
SharePointOnlineCredentials creds = new SharePointOnlineCredentials(user, passw);
context.Credentials = creds;
Uri sharepointuri = new Uri(host);
string authCookie = creds.GetAuthenticationCookie(sharepointuri);
Web web = context.Web;
context.Load(web, w=>w.Lists);
context.ExecuteQuery();
fedAuthString = authCookie.Replace("SPOIDCRL=", string.Empty);
Run Code Online (Sandbox Code Playgroud)
这样我设法获得FedAuth cookie,但我无法获得rtFa cookie.
我怎么能在这一点上获得rtFa cookie?我是否可以拦截此类操作中涉及的HTTP请求(即context.ExecuteQuery()) - 其中可能包含标题中的rtFa cookie?或者,我是否可以通过仅利用FedAuth cookie来获取rtFa cookie?
这是一个帮助类,可以在Internet上找到(例如,这里http://blog.kloud.com.au/tag/msonlineclaimshelper/).
该类实际上与普通身份验证一起使用,但在联合身份验证时失败.
所以我调整它以使它在这种情况下工作.只要我理解,步骤如下:
我不是这方面的专家,我提出以下代码:
这是调用上述方法的代码,并尝试通过两个步骤从凭证中获取FedAuth和rtFa(步骤1:从联合方获取SAML令牌;步骤2:将令牌从联合方传递到Sharepoint):
private List<string> GetCookies(){ …Run Code Online (Sandbox Code Playgroud) c# authentication sharepoint claims-based-identity ws-federation
我使用CSOM在C#中编码,我的应用程序将模板asp.net页面上传到"/ Pages /"库,我需要它在文件上传之前检查该位置是否存在同名的文件(然后可能它可以返回一个bool值).
我确实快速浏览了一下,但我发现的大多数解决方案都提到了使用Javascript,或者应用于本地部署.
如果有人能指出我正确的方向,我会很感激.
我在代码中有以下aspx代码.我想在ListItem复选框中添加复选框, ColumnsList并在按钮单击时找到所有选中的复选框.
但是当我尝试获取所选项目按钮时,单击ColumnsList计数变为0.
<asp:checkboxlist runat="server" EnableViewState="true" id="ColumnsList"/>
Run Code Online (Sandbox Code Playgroud)
在后面的代码中,我将数据添加到我的ColumnsList,如下所示
public override void OnLoad()
{
if(!this.IsPostBack)
{
this.ColumnsList.Items.Add(new ListItem { Text= "Text1", Value = "value1" });
this.ColumnsList.Items.Add(new ListItem { Text= "Text2", Value = "value2" });
}
}
Run Code Online (Sandbox Code Playgroud)
//这是按钮单击侦听器
private void Button_Click(object sender, EventArgs eventArgs)
{
// Count is 0 instead of 2
var count = this.ColumnsList.Items.Count;
foreach(ListItem item in this.ColumnsList.Items)
{
var selected = item.Selected;
// add selected to a list..etc
}
}
Run Code Online (Sandbox Code Playgroud)
注意:该应用程序已在部署点2010中部署.
Office Graph API中是否有办法访问特定列表中的项目 - 而不仅仅是我可以看到的项目,而是我可能无法访问的项目?
我正在使用sharepy和logging连接sharepoint.我用过波纹管代码来连接
import sharepy
import logging
SPUrl = "https://vvv.sharepoint.com"
username = "testuserb@vvvv.onmicrosoft.com"
password = "aaa@123"
s = sharepy.connect(SPUrl,username,password)
s.save()
headers = {"accept": "application/json;odata=verbose",
"content-type": "application/x-www-urlencoded; charset=UTF-8"}
fileToUpload = "copyUpload.py"
with open(fileToUpload, 'rb') as read_file:
content = read_file.read()
p = s.post("https://aaa.sharepoint.com/sites/vvv/_api/web/getfolderbyserverrelativeurl('/sites/aaa/bbb/')/Files/add(url='"+fileToUpload+"',overwrite=true)", data=content, headers=headers)
print(fileToUpload+" Uploaded in SP")
os.remove(fileToUpload)
logging.info("Uploaded file: with response file")
Run Code Online (Sandbox Code Playgroud)
当我将值传递给connect函数时,它会抛出以下错误
AttributeError: 'SharePointSession' object has no attribute 'cookie'
假设,如果我没有将值作为参数传递给终端中的时间,它将在终端上输入用户名和密码后请求用户名和密码,它工作正常.
但是我怎么能让它成问题呢?
我面临以下错误
Traceback (most recent call last):
File "copyUpload.py", line 18, in <module>
p = s.post("https://aaa.sharepoint.com/sites/Graphite/_api/web/getfolderbyserverrelativeurl('/sites/aaa/bbb/')/Files/add(url='"+fileToUpload+"',overwrite=true)", …Run Code Online (Sandbox Code Playgroud) sharepoint ×10
c# ×5
asp.net ×2
office365 ×2
asp-classic ×1
attachment ×1
comboboxlist ×1
csom ×1
iis ×1
list ×1
powershell ×1
python ×1