sharepoint-online

How to authorise (with OAuth 2.0) in JMeter having sharepoint online app?

拜拜、爱过 提交于 2019-12-12 10:02:40
问题 I have recorded scripts for all test cases, and run all test cases due to the OAuth 2.0 it is failing all of the test cases. Now I have to authenticate OAuth 2.0 in JMeter, I have following information: client_id, response_mode, protectedtokena, response_type, resources, scope, nonce,redirect_uri,wsucxt, cobrandid, client-request-id . 回答1: Add (or parametrize) parameter Authorization in your HTTP Header Manager. Add Bearer ${AuthToken} value. You should parse that token from previouse request

Getting NULL terms when accesing TermCollection from SharePoint Online via CSOM in an Azure Function

百般思念 提交于 2019-12-12 09:26:49
问题 I am trying to expose a REST API using Azure Functions which returns terms from a specific termset in SharePoint Online using CSOM and C#. I can definitely invoke this exact same CSOM code from a console app and from an Azure API app and it is able to loop through the terms and output to console or the HTTP response successfully. However, when the code below is invoked from the Azure Function host, it ALWAYS find a collection of NULL term objects, when looping through the TermCollection or

PreSaveAction is not working in SharePoint office 365 (2016)

痴心易碎 提交于 2019-12-12 04:37:13
问题 I am working on SharePoint office 365 (2016), and facing issue while adding custom validation in new item form. Here scenario is complex, I can't handle by using Validation setting/formula. So I have choose custom JavaScript code. As validation should be perform on click of Save button and PreSaveAction method successfully called but only in 'Classic Experience' but when user changed to 'New Experience' it won't call because of change of HTML structure of the form. Does any one have an idea

What's the POST body to create multichoice fields in sharepoint online using graph api?

天大地大妈咪最大 提交于 2019-12-11 17:48:29
问题 I'm trying to create new SharePoint ListItem using Microsoft Graph. To create a list item with simple fields like Title, my POST body looks like: { "fields":{ "Title":"Ehsan's REST" } } But as soon as I add a field with the multichoice value I get The request is malformed or incorrect. error. example: { "fields":{ "Title":"Ehsan's REST", "Languages": ["English","French"] } } During my search I found this forum post where SharePoint API (not Graph ) requires a metadata attribute to be added to

Sharepoint Online (Office 365) - Where can I find master page code/Javascript/CSS

微笑、不失礼 提交于 2019-12-11 17:46:54
问题 Hi I am new with SharePoint (working with Office 365 SharePoint online). I see many articles explaining make changes in master page, javascript or css if we need any sort of customization, like change heading color, hide some header etc... But I am unable to find any sort of code in SharePoint Online (Office 365). How can I achieve such task if I want to hide header or change the font and color for site page title. Can anybody suggest me the right path I can find the code to change, or is

Outlook add-in Rest Api token to get the SharePoint Rest Api Token

大兔子大兔子 提交于 2019-12-11 17:22:41
问题 I am building a Outlook Add-in using Node JS and it needs get information from SharePoint Online using SharePoint Rest Api because Graph does`t have an option to get the required information. Question? I need a SharePoint online auth token to call SP Rest Api which I am getting using OAuth flow (implicit flow) after user enters credentials. Is there a way to get the SharePoint online auth token using Outlook Rest Api returned by getCallbackTokenAsync() or getUserIdentityTokenAsync() or

Create Sharepoint folder from VBA (access 2016)

℡╲_俬逩灬. 提交于 2019-12-11 16:46:43
问题 I have an access 2016 app that currently creates a folder on a shared drive related to the DB record the user is working on. We are migrating to SP online and I need to re-create something similar I can list the files and folders currently in a directory using the API but when I try and create a new folder I am getting an error "{"error":{"code":"-2130575251, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The security validation for this page is invalid and might be

Cannot save file to Sharepoint Online using VBA (Permissions error)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 16:07:43
问题 This is one of my first times using VBA. I have a command button that is supposed to be saving a file as, to my sharepoint online documents page. I can use the "excel services" and save to that documents page from excel manually, but when i try the same in VBA it is saying I do not have permission. Below is the code I am using, any advice would be much appreciated! Private Sub CommandButton1_Click() Dim path as string dim filename1 as string path = "https://xxxxxx.sharepoint.com/sites/xxxxx

Upload file test with Postman

半世苍凉 提交于 2019-12-11 07:58:29
问题 I am testing a file upload to SharePoint online with Postman. In my post request I set the body to form-data and add a file param with a text file called a.txt. The text file contains the text one two three When I execute the request my file is uploaded but when I open the file the contents is ----------------------------235004993628819232914336 Content-Disposition: form-data; name="file"; filename="a.txt" Content-Type: text/plain one two three ----------------------------235004 I have tried

Get file url from sharepoint by name

孤者浪人 提交于 2019-12-11 07:14:52
问题 I'm able to save document in Sharepoint documents. Once the document is saved I want to be able to get the url of that document so I can share the url with a user. This is the code I'm using to save the document: using (ClientContext clientContext = new ClientContext("https://mydomain.sharepoint.com")) { SecureString passWord = new SecureString(); foreach (char c in "mypassword".ToCharArray()) passWord.AppendChar(c); clientContext.Credentials = new SharePointOnlineCredentials("myaccount