sharepoint-online

SharePoint Online: REST API for List, calling Filters and limit the return items

假如想象 提交于 2019-12-21 06:18:59
问题 I am trying to call REST API for list using below REST API https://myweb.sharepoint.com/teams/sites/subwebs/_api/web/lists/GetByTitle('MyList')/Items? $top=1 &$orderby=ID &$select=ID,FName,LName,Title &$filter=Title eq 'Female' I need $filter should work with number of records limited to $top. The $top works if $filter is not applied. Well, my list contains the items more than 5000. I received below error message while making GET Request for above URL { "readyState": 4, "responseText": "{\

Access denied office 365 / SharePoint online with Global Admin account

梦想与她 提交于 2019-12-21 05:15:11
问题 I am going crazy since two days solving an issue. The problem is; I am making a console APP which is talking to SharePoint Online using global admin account (One which was specified as admin while making a new subscription). What I am trying to achieve is, I want to add a custom action using CSOM to each site collection and subsite of office 365. That code works fine except on the root site collection which is pre-created by office 365 while signing up (i.e. https://xyz.sharepoint.com) For

Orderby on SharePoint list item does not work

三世轮回 提交于 2019-12-20 05:16:13
问题 I'm trying to order a collection of list items with Microsoft Graph : .../items?select=id&orderby=id%20desc I've tried on multiple properties and with a space instead of %20 . I've followed the documentation. But ids are always ordered ascending. Am I doing anything wrong or is it a bug with Microsoft Graph ? 回答1: The $orderby parameter is not currently supported by the SharePoint endpoints. At this time only $select , $expand , and $filter are supported. I recommend visiting the UserVoice

Getting a Sharepoint site collection's owner with Graph

泄露秘密 提交于 2019-12-13 22:52:05
问题 How do I get a Sharepoint Online site collection's owner with the Graph API? This page of the documents seems to suggest that getting a site collection's root site returns its owner, however it didn't work when I tested it in Graph Explorer. Am I missing some parameters, are there other APIs, or is it simply impossible? 回答1: Am I missing some parameters No are there other APIs No or is it simply impossible? It is possible, but the api is still in development. Current endpoint is primarily

SharePoint Get all sites and all sub sites using SharePoint online REST API

空扰寡人 提交于 2019-12-13 17:58:28
问题 For SharePoint Online connector We used following steps to fetch all sites: Step 1: Created Add-in on SharePoint instance with following permission xml <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl"/> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="Read"/> </AppPermissionRequests> Step 2: Used below API to get all sites and subsites https://<site_name>.sharepoint.com/_api/search/query?querytext=

Cannot create a folder in a list [closed]

非 Y 不嫁゛ 提交于 2019-12-13 16:07:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . I am trying to create a folder in a list, the following does not work: var folder = new DriveItem { Name = plan.Title, Folder = new Folder() }; await graphServiceClient .Sites["ourdomain.sharepoint.com:/sites/ITOddeleni:"] .Lists["Planner"] .Drive .Root .Children .Request() .AddAsync(folder); I am using these

How to move list item into folder in Sharepoint online

妖精的绣舞 提交于 2019-12-13 05:25:11
问题 I created a folder and have some item in this list. So now how can I move list item into folder using JSOM. I know user can drag/drop, but I want when user create a list is always move to folder automatically. 回答1: The following example demonstrates how to move a list item into folder via SharePoint JSOM API: var listTitle = "Requests"; //list title var itemId = 1; //list item id var targetFolderUrl = "/Lists/Requests/Archive"; //target folder server relative url var ctx = SP.ClientContext

Unable to save new record to the sharepoint list

筅森魡賤 提交于 2019-12-13 02:57:56
问题 I am creating a leave system for my company through Sharepoint. I tried customizing the edit form using powerapps. So when I fill all the records in edit form as shown in powerapp.png, and click on save button as in normal sharepoint form, my fields get reset to their defaults and i get 'entry required or invalid value'(see the attachment named 'powerapp.png') and the item isn't added to my sharepoint list. However the record does get added to list if using normal sharepoint form as shown in

Data streaming with restsharp and WebAPI

杀马特。学长 韩版系。学妹 提交于 2019-12-13 01:50:27
问题 My aim is to GET and POST files to SP Online. I have written a WEB API with the two methods. These methods use CSOM to interact with SP Online. The GET returns the response Ok(array of bytes) to the client and the POST gets the entire file to upload in the request body and performs the upload to Sharepoint Online in chunks. I've been told that i should use streaming techniques, since the context is an enterprise application with many simultaneous requests. So the GET method should return a

Convert JavaScript DateTime to UTC with no milliseconds

不羁岁月 提交于 2019-12-12 22:09:07
问题 Right now I'm trying to parse a date that's written in a human-readable format into a DateTime String that a SharePoint list will accept. In order to do this I've determined that I need a String in a format similar to ISO that looks like: 2007-08-20T00:00:00Z . It seems that SharePoint only accepts DateTimes that are in UTC with no milliseconds included (for whatever reason, SharePoint gives errors and won't accept the DateTime when you include the milliseconds), so I need to convert my local