sharepoint-2013

Login error to Sharepoint 2013 repository using openCMIS Workbench

谁说胖子不能爱 提交于 2019-12-21 21:39:43
问题 using the OpenCMIS Workbench 0.8.0, I can load the sharepoint 2013 (GA) repositories fine but get the following error when I try to login to one of the repositories such as Documents: "Invalid Argument: One or more of the input parameters to the service method is missing or invalid" Found a blog with some instructions but those didn't work for me: http://dhartford.blogspot.com/2013/01/sharepoint-2013-w-apache-chemistry-cmis.html?showComment=1359398536275#c6910049622927723676 Note: Here is the

Sharepoint 2013 MVC 5 provider-hosted app. Fails to authenticate on HttpPost using [SharePointContextFilter]

拟墨画扇 提交于 2019-12-21 12:37:18
问题 I have been banging my head for the past week unable to resolve some issues with proper authentication for sharepoint provider-hosted app. I am currently developing a sharepoint app for a company's Sharepoint online. I am using Visual Studio 2013. I deploy the app as a Cloud-service on the company's Windows Azure portal. Everything goes smooth up to the point when i need to make a HttpPost, then the app fails to authenticate. The design of the Conroller is as it follows:

Retrieve Publishing image field with Sharepoint 2013 REST Api / CSOM

旧城冷巷雨未停 提交于 2019-12-20 19:49:12
问题 We're using the Sharepoint 2013 REST API to get all news items from the Sharepoint. We made a custom ContentType 'Newsitem' with several properties including a Publishing Image Field. var contentTypeId = "0x01100018B03AC7E8312648AEA00851DEDBCAF802"; var standardUri = "https://examplesite.com/blog/_api/lists/getbytitle('Messages')/items?$top=7&$filter=startswith(ContentTypeId,'" + contentTypeId + "')"; var selectiveUri = "https://examplesite.com/blog/_api/lists/getbytitle('Messages')/items?

SharePoint REST Get User Title in a single REST query

蓝咒 提交于 2019-12-20 10:49:08
问题 I have a list which has a "People and Group" column. when I query the rows using REST, I get user Ids listed in this column. I found this article which will help me in converting each id to a title http://www.codeproject.com/Articles/692289/How-to-Get-Login-Name-and-Display-Name-using-Sha But I am wondering if there is a way in which I can get the user title by a single REST call (rather than first get the ID and then making another call to convert the ID into the user display name and the

Autofac and ASP .Net MVC 4 Web API

走远了吗. 提交于 2019-12-19 16:47:33
问题 I am using Autofac for IoC in my ASP .Net MVC 4 project. Autofac is having some trouble initializing the repository and passing it to the API Controller . I am sure I am missing something in my configuration. Here is the error I get when I navigate to: https://localhost:44305/api/integration <Error> <Message>An error has occurred.</Message> <ExceptionMessage> None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'EL.Web.Controllers.API

Sharepoint 2013: EnsureUser via REST API

╄→гoц情女王★ 提交于 2019-12-18 18:20:11
问题 I'm trying to ensure some users automatically via REST API. My REST call: $.ajax({ url: "blablabla/_api/web/ensureuser", type: "POST", data: "{ 'logonName': 'i%3A0%23.w%7Cdomain%09logonName' }", headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" }, success: function () { console.log("done!"); }, error: function (err) { console.log(JSON.stringify(err)); } }); Now when sending this call I get the following error; "Bad Request: Microsoft.Data

SharePoint 2013 get current user using JavaScript

对着背影说爱祢 提交于 2019-12-18 10:35:09
问题 How to get current user name using JavaScript in Script Editor web part? 回答1: Here is the code that worked for me: <script src="/SiteAssets/jquery.SPServices-2013.02a.js" type="text/javascript"></script> <script src="/SiteAssets/jquery.js" type="text/javascript"></script> <script type="text/javascript"> var userid= _spPageContextInfo.userId; var requestUri = _spPageContextInfo.webAbsoluteUrl + "/_api/web/getuserbyid(" + userid + ")"; var requestHeaders = { "accept" : "application/json;odata

SharePoint 2013 add javascript after whole page load

旧时模样 提交于 2019-12-18 10:09:17
问题 Disclaimer: I have no experience with SharePoint2013. I have problem - I must include/fire some javascript functions after the whole page has been loaded. I tried listening to DOMDocumentReady and window.load events, but sharepoint render the rest of page after those events. My question is: what I should do to be able to run script after whole page with ajax is rendered. Also I noticed that page navigation is based on hash (#) part. Obviously I must detect that moment also. Any help or even

FBA User in FBA role is not taking permission from SharePoint Group

自闭症网瘾萝莉.ら 提交于 2019-12-18 09:49:11
问题 I've configured FBA with Sharepoint 2013 on my development machine (one server). I'm able to create FBA Roles and FBA users and i can connect using FBA users. The problem is when it comes to permission. I'm adding the FBA Roles to SharePoint Group but the permission is not being granted to the User inside the FBA Role. I've reviewed the configuration several time, and checked the below: web.config of the web application web.config of central admin and STS Checked the security on the FBA

Mapping FBA Roles to SharePoint Groups in SharePoint 2013

…衆ロ難τιáo~ 提交于 2019-12-13 17:46:06
问题 I've already set up Membership and Role Providers in SP2013 and a custom login page for FBA. I can login as one of my FBA-based users, so I know the connection to the database works. However, I'm really struggling trying to incorporate my FBA-based roles into SharePoint. How do I map "FBARole1", for example, to the SharePoint "Owners" group for my site, such that anyone I put into "FBARole1" will automatically be an owner of the site? I go into Site Settings-->Site Permissions. I click on