sharepoint-online

How to deploy officeJS addin on office online on-premise server?

十年热恋 提交于 2019-12-25 00:37:36
问题 I have written a small officeJS addin for excel which run perfectly on desktop excel client. Also office online from onedrive gives an option of installing the addin from the ribbon menu. I want to use this officeJS addin to run on either of the following configuration: On premise office online server configured with on premise sharepoint server. On premise office online server with my own implementation of wopi host. How to deploy an officeJS addin on office online on premise server which is

How to fix error in SharePoint while adding users in multi person or group field(people only)

橙三吉。 提交于 2019-12-24 21:23:52
问题 I am trying to add multiple users in a multi person or group field(people only) in a Sharepoint list, But I am getting below error message "An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected." I have used REST call to add items in Sharepoint list, items are being added properly when I remove multi people column in the rest call. $scope.formData = { Title: $scope.codeNumber, SBMTestId:{ "results": [17,15] } } var data = JSON

ILMerge with CRM plugin and Sharepoint Online

假装没事ソ 提交于 2019-12-24 19:40:28
问题 I am trying to us ILMerge via nuget to merge two SharePoint assemblies in to my plugin dll. The assemblies are; Microsoft.SharePoint.Client (v16.1) Microsoft.SharePoint.Client.Runtime (v16.1) They seem to successfully merge in to my single plugin dll and i can see the required classes etc if I inspect the dll with JustDecompile. When debugging the plugin, it throws a security exception; Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0

Is a browser required for Onedrive/Graph Authentication

会有一股神秘感。 提交于 2019-12-24 07:46:13
问题 It appears via the OneDrive API documentation that a user must always "authenticate" using a web-browser to access the OneDrive API. This is not helpful for system accounts. Am I interpreting this correctly? Or is there a way to achieve step one without a browser: Step 1. Get an authorization code To start the sign-in process with the code flow, use a web browser or web-browser control to load this URL request. GET https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=

Web.GetFileByServerRelativeUrl throws “Value does not fall within expected range”

。_饼干妹妹 提交于 2019-12-23 07:03:48
问题 I have a SP Online site where I store Documents, I have no issues adding/retrieving documents but in the delete flow I get an error during retrieval of a File object. public static void DeleteDocument() { using (ClientContext ctx = ClientContextFactory.Create("https://my-sponline-site.sharepoint.com/sites/documentsite")) { Web web = ctx.Web; ctx.Load(web); ctx.ExecuteQuery(); string relativeUrl = "/Documents/images.jpg"; File file = web.GetFileByServerRelativeUrl(relativeUrl); ctx.Load(file);

Office365-REST-Python-Client Access Token issue

爷,独闯天下 提交于 2019-12-23 05:19:56
问题 I've found many examples of using the Office365-REST-Python-Client however, none of them are correctly obtaining the access token. I've registered an app under the Azure Portal, granted it API permissions using 'Application permissions', created a secret and used the client_secret and client_id in my settings dictionary to use in the below code. def read_folder_and_files(context, list_title): """Read a folder example""" list_obj = context.web.lists.get_by_title(list_title) folder = list_obj

Why I am not able to authenticate with Microsoft Graph Explorer through Sharepoint Custom Web Part only in Edge Browser

倾然丶 夕夏残阳落幕 提交于 2019-12-23 04:41:40
问题 I have deployed a custom web part on sharepoint online, in which I am authenticate with Microsoft Graph Explorer. It is authenticated through Sharepoint Custom Web Part successfully in Chrome , IE and Firefox but not authenticated in Edge . In Edge I've getting below error: description: "Invalid argument" message: "Invalid argument" number: -2147418113 stack: "TypeError: Invalid argument at Anonymous function (https://spoprod-a.akamaihd.net/files/sp-client-prod_2019-05-31.012/sp-pages

Trying to upload files to subfolder in Sharepoint Online via Powershell

笑着哭i 提交于 2019-12-22 00:27:57
问题 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

Microsoft Graph - Why is root site read access needed to access subsite in another site collection?

混江龙づ霸主 提交于 2019-12-21 19:58:08
问题 I'm trying to access the items of a list that is a part of a nested subsite, like this: https://{mytenant}.sharepoint.com/ vendorSiteCollection/ vendorAppSite/ vendorList My test user has only Read permission on the vendorAppSite Subsite. I have removed read permissions from all other sites, including the root site collection at https://{mytenant}.sharepoint.com . If I navigate to here in a browser: https://{mytenant}.sharepoint.com/sites/{vendorSiteCollection}/{vendorAppSite}/Lists/

Change permissions of a SharePoint list using JavaScript

只谈情不闲聊 提交于 2019-12-21 17:40:02
问题 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