sharepoint-online

Trying to upload files to subfolder in Sharepoint Online via Powershell

╄→尐↘猪︶ㄣ 提交于 2019-12-04 20:41:31
I am new to Powershell and I am trying to upload files from a local folder into Sharepoint online. I seem to get the files into the library, but not into the second subfolder where i want them. Script so far: #Specify tenant admin and site URL $User = "admin@contoso.no" $SiteURL = "https://contoso.sharepoint.com" $Folder = "E:\LocalFolder" $DocLibName = "Libraryname" $FolderName = "Folder/SubFolder" #Add references to SharePoint client assemblies and authenticate to Office 365 site – required for CSOM Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI

Change permissions of a SharePoint list using JavaScript

我的未来我决定 提交于 2019-12-04 10:56:01
I have an app that creates a list. I'd like the app to also set the list permissions to only allow admins to make changes to the list. I know how to hide the list, but I understand that this will not prevent clever users from typing in the URL of the list and modifying it anyway. I don't see a way of changing list permissions with JavaScript. The functions available to me for lists don't seem to allow for modification of permissions, but it's possible I overlooked the correct one(s). Any pointers on what functions I should be looking at? How to enable unique permissions for a List object via

How do I pass user credentials from the console to SharePoint Online?

做~自己de王妃 提交于 2019-12-04 10:55:49
I am trying to connect SharePoint 2013 Online website using a Context Token from a console executable. However, it is giving me error The remote server returned an error: (403) Forbidden. Here is the code snippet: string spurl = ConfigurationManager.AppSettings["Sharepoint_URL"].ToString(); using (ClientContext context = new ClientContext(spurl)) { context.Credentials = new NetworkCredential("username", "password", "domain"); context.ExecuteQuery(); Web web = context.Web; context.Load(web); context.ExecuteQuery(); Console.WriteLine(context.Web.Title); } Console.ReadKey(); How can I make a

The proper way to write a SharePoint User to a User Field in a SharePoint list

痴心易碎 提交于 2019-12-04 08:58:55
I'm writing a user to a SharePoint list. I've read that the SharePoint User field has a string like this inside of it: userId;#userLoginName I've tried formatting in the same way when writing to a User field, for example when I write this string it works: 9;#i:0#.f|membership|ectropy@example.org But what is strange (to me at least) is that 9;# seems to work or even 9 . Even if I don't pass the userLoginName info at all, the loginId seems to be enough for it to recognize which User I'm talking about. This seems to imply that when writing to the SharePoint User field, you only need the id, and

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

二次信任 提交于 2019-12-03 21:44:25
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": "{\"odata.error\":{\"code\":\"-2147024860, Microsoft.SharePoint.SPQueryThrottledException\",\"message\":{\

Access denied office 365 / SharePoint online with Global Admin account

 ̄綄美尐妖づ 提交于 2019-12-03 16:58:24
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 any tenant for root site collection, it gives me below error; { "SchemaVersion":"15.0.0.0",

How to enable speech function on Webchat channel in a modern SharePoint Online page?

前提是你 提交于 2019-12-02 16:40:22
问题 I made a chatbot that has speech capabilities, I tested in the emulator and it works great. However, after deployment, I noticed that the webchat channel doesn't have it enabled. I have the webchat embedded in a modern SharePoint Online site and from what I've searched in the Internet, most answers talk about modifying the HTML and using JavaScript, which apparently is not easy to do in this modern framework that Microsoft has according to articles. So in the end, how can I enable the speech

How to enable speech function on Webchat channel in a modern SharePoint Online page?

爷,独闯天下 提交于 2019-12-02 09:36:02
I made a chatbot that has speech capabilities, I tested in the emulator and it works great. However, after deployment, I noticed that the webchat channel doesn't have it enabled. I have the webchat embedded in a modern SharePoint Online site and from what I've searched in the Internet, most answers talk about modifying the HTML and using JavaScript, which apparently is not easy to do in this modern framework that Microsoft has according to articles. So in the end, how can I enable the speech feature in the webchat channel that is embedded inside a modern SharePoint site page? I believe there

Get all SharePoint files and folders of a drive using Microsoft Graph API

会有一股神秘感。 提交于 2019-12-01 23:22:37
My problem is: if I call https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/children all I get are the top-level items of that drive. How can I achieve to get all the subfolders and files of the drive? Lee_MSFT There's no endpoint to get all items in a drive with every file from every subfolder at once. Below endpoint maps to a test library MyDoc3. /sites/siteid/drives/{drive-id} Then, below endpoint use to get children of FolderA in MyDoc3. /sites/siteid/drives/{drive-id}/root:/FolderA:/children 来源: https://stackoverflow.com/questions/54496616/get-all-sharepoint-files-and

Get all SharePoint files and folders of a drive using Microsoft Graph API

岁酱吖の 提交于 2019-12-01 08:40:46
问题 My problem is: if I call https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/children all I get are the top-level items of that drive. How can I achieve to get all the subfolders and files of the drive? 回答1: There's no endpoint to get all items in a drive with every file from every subfolder at once. Below endpoint maps to a test library MyDoc3. /sites/siteid/drives/{drive-id} Then, below endpoint use to get children of FolderA in MyDoc3. /sites/siteid/drives/{drive-id}