sharepoint

How can I have teamcity run a .bat file on each successful build?

风格不统一 提交于 2020-01-02 18:40:08
问题 I have a teamcity (4.something) install that creates .wsp file for deployment to sharepoint. Currently I have to copy the wsp out of the build artifacts directory and into a little deploy folder I have created. In the folder I run a .bat that deploys the new .wsp to our test server. What steps can I take to automate this? Either copy the .bat into the artifacts folder and update the paths etc or copy from the artifacts folder into the 'deploy' folder and run the .bat from there. I am a

Determining User's role in a SharePoint site/workspace using the webservices API

纵然是瞬间 提交于 2020-01-02 15:31:49
问题 How do I figure out the role(s) of a user in a site using the webservices API? All I have to go on is the username and domain. I've found that the PermissionsService.Permissions.GetPermissionCollection(url,"Web") will return a collection of permitted users and groups with their permissions masks but I still need to figure out if the user is in any of the groups and then convert the permissions masks into a roles collection. I feel like there's a better way to do this and I'm just missing it.

Programmatically changing name of SPFolder

限于喜欢 提交于 2020-01-02 11:05:29
问题 I was wondering whether it is possible to programmatically change the name of an SPFolder after it has been created? e.g. foreach (SPFolder folder in list.RootFolder.SubFolders) { if (folder.Name.Equals("blah")) { // set the name of the folder to something else folder.Name = "blah 2.0"; } } Googling so far suggested that MoveTo is the only way of doing so. There are a lot of items inside the folder so I'm reluctant to moving it unless there is absolutely no other ways. Thanks. 回答1: I ended up

Mobile App for Sharepoint

拈花ヽ惹草 提交于 2020-01-02 10:05:48
问题 I'm trying to develop a mobile app that will integrate with Sharepoint 2010 so that my clients can make approvals and stuff from a mobile device. (I'm hoping to build a HTML5/Android Native app that will call webservices and get the job done) I looked it up and there is a RESTful API for Sharepoint that I think I can use with the ECMAScript library. Can I use this same REST API to view pending approvals, to approve/reject, etc or is the functionality limited to viewing data? Sorry but i'm a

SharePoint 2010 error not found in logs, how to configure logging?

纵然是瞬间 提交于 2020-01-02 08:45:12
问题 We have a SharePoint 2010 feature that works fine on my development machine, but won't activate on the staging system. It's SiteCollection scoped, the containing solution was successfully deployed on one WebApplication. When we try to activate the feature, we get an error message with a Correlation ID. But we can't find this ID or the name of the feature in the SharePoint Logs nor in the Windows Event Log. Maybe logging wasn't configured right or there is an error with ULS on the machine, but

access list in sharepoint 2007 using c#

女生的网名这么多〃 提交于 2020-01-02 08:31:59
问题 I'm looking to compile data from a few diffrent custome lists in sharepoint 2007 Its a hosted sharepoint site so I don't have access to the machine backend. Is there any example code to access the sharepoint site using c#? here is my code thus far (i get the error Cannot connect to the Sharepoint site ''. Try again later. ) DataSet dt = new DataSet(); string query = "SELECT * FROM list"; string site = "http://sp.markonsolutions.com/Lists/Security/"; string list = "35E70EO4-6072-4T55-B741

access list in sharepoint 2007 using c#

♀尐吖头ヾ 提交于 2020-01-02 08:31:31
问题 I'm looking to compile data from a few diffrent custome lists in sharepoint 2007 Its a hosted sharepoint site so I don't have access to the machine backend. Is there any example code to access the sharepoint site using c#? here is my code thus far (i get the error Cannot connect to the Sharepoint site ''. Try again later. ) DataSet dt = new DataSet(); string query = "SELECT * FROM list"; string site = "http://sp.markonsolutions.com/Lists/Security/"; string list = "35E70EO4-6072-4T55-B741

准备好开发SharePoint APP了吗?

可紊 提交于 2020-01-02 07:58:52
在上一篇博客 准备好开发SharePoint APP了吗? 中,我介绍了如何注册SharePoint online开发人员版,那么现在我们就可以开发第一个SharePoint APP了。 当然,开发离不开工具,所以我们需要首先安装开发工具,这里隆重介绍NAPA。好,我们先安装上。 点击 Build an app, 系统会自动跳转到Napa” Office 365 Development Tools”页面,点击ADD IT, 然后可能会要求你输入一次用户名密码,之后点击 ,在确认页面点击 ,在提问页面选择Trust it: 再次回到Team Site页面,提示正在安装NAPA: 大约几十秒之后,刷新页面,可以看到已经安装好了。 点击图标,进去到如下页面: 填好名字,点击Create, 接下来,就进入到了开发页面了。这是一个活生生的网页版Visual Studio. 在这里就可以写代码了。 在网页左下角,有几个按钮,分别是: 运行、删除、设置、在Visual Studio中打开。点击第一个按钮: 几十秒之后,安装完成了,点击链接: 这样,就看到了我们第一个SharePoint APP的运行结果了! 来源: https://www.cnblogs.com/chinatown/archive/2012/11/18/2776250.html

Using SharePoint CSOM inside .Net Core application

被刻印的时光 ゝ 提交于 2020-01-02 07:13:16
问题 I want to get data from SharePoint list by CSOM library on .Net Core MVC application. There are absolutely no problem to achieve that on .Net Framework aplication because Microsoft.SharePoint.Client library contains ExecuteQuery method. Unfortunately .Net Core equivalent not. I've made Async function public async Task<ActionResult> GetRequests() { ClientContext context = new ClientContext("https://xxx/sites/xxx/"); List certificatesList = context.Web.Lists.GetByTitle("Items"); CamlQuery query

Using SharePoint CSOM inside .Net Core application

我只是一个虾纸丫 提交于 2020-01-02 07:11:33
问题 I want to get data from SharePoint list by CSOM library on .Net Core MVC application. There are absolutely no problem to achieve that on .Net Framework aplication because Microsoft.SharePoint.Client library contains ExecuteQuery method. Unfortunately .Net Core equivalent not. I've made Async function public async Task<ActionResult> GetRequests() { ClientContext context = new ClientContext("https://xxx/sites/xxx/"); List certificatesList = context.Web.Lists.GetByTitle("Items"); CamlQuery query