sharepoint-online

Registering an application for the Microsoft Graph API in the German National Cloud

可紊 提交于 2019-12-11 06:43:39
问题 I have successfully registered my application for graph.microsoft.com , but now it also needs to work with graph.cloudapi.de . The Application Registration Portal does not seem to be the correct one for the German National Cloud. Moreover, applications registered in portal.microsoftazure.de only work with the SharePoint API, not Graph. Here's a sample HTTP exchange between my program and the German Microsoft Cloud. I am hand coding HTTP requests in Delphi. The exchange works with graph

Getting SharePoint List Content Types

浪尽此生 提交于 2019-12-11 05:39:00
问题 Currently we are getting all lists in all sub sites using below REST query. '/_api/Web/Webs?$expand=Lists&select=Title,id,ParentWebUrl' now we would like to get the all content types that are used in those lists as well. Tried expanding ContentTypes, but could not get it to work. Can anyone help to get content types belong to those lists? Even if filtering by content type in the REST query it self is fine. or is there any way to do this in search results of lists? 回答1: After searching

.NET Graph SDK Updating Sharepoint Online List Item Values

旧时模样 提交于 2019-12-11 04:28:42
问题 I'm trying to add values to a custom column on a list item after uploading the list item to the list. I can get the item into the list, and I can query the list and get back the item's data, but when I try to add the data for the extra field I get the following Microsoft.SharePoint.Client.InvalidClientQueryException error: A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either

Getting a sharepoint listitem using GUID in graph api

一个人想着一个人 提交于 2019-12-11 01:44:03
问题 We need to upload a document to a SharePoint Online list and then add some searchable attributes to the document. We are uploading the document using Microsoft Graph. Since we need to be able to search for the document against different criteria, we are uploading the document to a List. Here is a snapshot of the request: string requestUrl = "https://graph.microsoft.com/v1.0/drives/" + driveID + "/items/root:/" + fileName + ".docx:/content"; HttpClient client = new HttpClient();

Sharepoint Online (Office 365) - How to set Allow/Full Control permission for 'Add and Customize Pages'

﹥>﹥吖頭↗ 提交于 2019-12-10 11:34:44
问题 I could not find a way to enable Full Control for the feature Add and Customize Pages in Site Permissions screen. I am the administrator of the Site Collection and have created this site myself, but still I could not allow myself to allow this feature. When used Check Permissions screen, it is showing Deny status (as below): My Admin setting for SharePoint has Custom Script enabled (as below image): I am using SharePoint Online(Office365). 来源: https://stackoverflow.com/questions/51647702

Using chunked upload/StartUpload with sharepoint REST api

你离开我真会死。 提交于 2019-12-08 11:39:36
问题 I want to upload large files to sahrepoint online but I am unable to use chunked upload of sharepoint REST api. I would like to see a working example. the api is described in here https://msdn.microsoft.com/EN-US/library/office/dn450841.aspx#bk_FileStartUpload using the methods startUpload(GUID, stream1) continueUpload(GUID, 10 MB, stream2) continueUpload(GUID, 20 MB, stream3) finishUpload(GUID, 30 MB, stream4) I found the same question in https://social.msdn.microsoft.com/Forums/sqlserver/en

Not able to get Lookup field value in Sharepoint 2013 online Custom List Using SPD

痴心易碎 提交于 2019-12-08 11:04:26
问题 I have one lookup column named "ActivityStatus" and it has two values. and I just want to check that lookup field value on Presave Action. Below is my code but it is not working. <script type="text/javascript"> function PreSaveAction() { alert("Inside"); var elm = document.getElementById("ActivityStatus"); alert(elm); if (elm == "Incomplete" || elm == "Inprogress") { document.getElementById("ActivityStatus").style.display='none'; alert("Previous Activity is in Progress..."); return false ; }

Access SharePoint online using client object model- Forbidden error

雨燕双飞 提交于 2019-12-08 09:14:27
问题 I tried to Create a new list item using client object model. I have created an asp.net application to do the task. It works if I pass the URL of SharePoint server which is installed in my machine. But if I give my SharePoint online URL it is not working as below code shows. I get "The remote server returned an error: (403) Forbidden. " error. Any idea? ClientContext context = new ClientContext("https://xxx.sharepoint.com/SitePages/"); List announcementsList = context.Web.Lists.GetByTitle(

Getting ALL users from SharePoint online tenant and set userprofile property via Powershell

丶灬走出姿态 提交于 2019-12-08 08:55:50
问题 UPDATE: Vadim has a good answer below but this is how I did: namespace UserProfile.Manipulation.CSOM.Console { class Program { static void Main(string[] args) { searchAllUsers(); } private static void searchAllUsers() { string siteCollectionUrl = "https://tenant.sharepoint.com/sites/intranet"; string tenantAdminLoginName = "adminlogin"; string tenantAdminPassword = "Password"; using (ClientContext clientContext = new ClientContext(siteCollectionUrl)) { SecureString passWord = new SecureString

While performing load testing on SharePoint app, it shows error for WinAuth, how to resolve it?

Deadly 提交于 2019-12-08 06:30:58
问题 I have recorded the script in JMeter, and while validating it, it is throwing an error for the winauth/sso, how to resolve it. my app has oAuth and me have to authenticate it. I'm running the script for WinAuth, it gets highlighted in red color and under Response Body, it is displaying "Unauthorized" I have added the HTTP Cookie Manager (check CookieManager.save.cookies=true in jmeter.properties), HTTP Authorization Manager.[images are added down the below for verification purpose] I'm not