sharepoint-online

MSAL AD token not valid with SharePoint Online CSOM

大兔子大兔子 提交于 2021-02-19 02:37:20
问题 I am able to retrieve and use an access token via MSAL in a desktop .Net project. I can successfully retrieve tokens and they are valid in my Graph calls. However, trying to use the access token with SharePoint Online CSOM results in a 401: Unauthorized. This is similar to accessing sharepoint REST apis using msal throws 401 (except I am using C# and the latest CSOM). It is my understanding that MSFT is trying to move devs away from ADAL and towards MSAL, but there seems to be some

Powershell Jobs with SharePoint Connection

♀尐吖头ヾ 提交于 2021-02-10 07:27:23
问题 (Basic desire is to cascade delete files. Also, use the same concept to recurse copy files to SharePoint) How do you pass a SharePoint connection into a PowerShell job. If I use Connect-PNPOnline -ReturnConnection and then pass the variable into the Job as an argument I get the following error. System.Management.Automation.ParameterBindingException: Cannot bind parameter 'Connection'. Cannot convert the "SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection" value of type "Deserialized

Tenant does not have a SPO license when using Microsoft Graph API with Application Permissions

若如初见. 提交于 2021-01-29 15:01:54
问题 We're getting a 400 error with the message "Tenant does not have a SPO license" when we try to access the Sharepoint-endpoints in the Microsoft Graph v1.0 API. We've registered our Azure AD app and assigned Application Permissions (as opposed to Delegated) for the relevant endpoints, as we need to access the endpoints server to server (ie. outside the context of an authenticated user). The tenant is connected to an Office 365 Business subscription, that we can assign to users, but the tenant

Alternative Save/OpenBinaryDirect methods for CSOM for SharePoint Online

谁说胖子不能爱 提交于 2021-01-29 14:31:23
问题 Based on the doc from MS https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/using-csom-for-dotnet-standard, Save/OpenBinaryDirect methods is not available for .NET core app, they suggest to use regular file API, so what is the alternative way to read/write files stored in SharePoint online? what is the regular file API? does anyone done this? any example code/documentation? 回答1: Download file in .NET Core CSOM: using (var authenticationManager = new AuthenticationManager()) using (var

JWPlayer with SPFx

天大地大妈咪最大 提交于 2021-01-29 08:20:15
问题 We are trying to embed JWPlayer that has the capability to resume playback from where we last left in the article below https://www.jwplayer.com/developers/web-player-demos/resume-playback-with-cookies/ Was able to find the npm package to be installed , However there is no resource online that describes its usage either with react or SPFx. Would appreciate if anyone could help us out with the code samples or with an alternate technique to achieve this. Thanks in advance 来源: https:/

SharePoint Designer Workflow Item Count

一笑奈何 提交于 2021-01-29 06:37:18
问题 I have created SharePoint designer workflow 2013. I am using REST API to fetch records with filter query as below [%Workflow Context:Current Site URL%]_api/lists/getbytitle('[%Workflow Context:List Name%]')/items?$select=Title,ItemId,Reaction,Flag&$filter=Flag eq '1' Now I am using Item Count Action to count the Results but it always give me zero. Kindly help me to solve the issue 回答1: You're missing web in your endpoint _api/web/ . It's helpful to output the rest api endpoint for

SharePoint REST API returns incomplete content of file during downloading

别等时光非礼了梦想. 提交于 2021-01-29 05:46:51
问题 I work on application for fetching and downloading SharePoint data. For every folder in SharePoint I can get the list of all files inside given folder by using next SharePoint REST API endpoint: /_api/web/GetFolderById('<folder_guid>')/Files The expected size and guid is provided for every file so I can use them when I want to download the file. Then I use the next endpoint from SharePoint REST API in order to actually get file content: /_api/web/GetFileById('<file_guid>')/$value From time to

Programmatically modifying a Sharepoint Online Excel file

谁说我不能喝 提交于 2021-01-29 05:31:54
问题 We need to create a c# application that can modify an Excel file in one of our Sharepoint online sites. For a local file I do like this: Excel.Application excel_app = new Excel.Application(); excel_app.Visible = true; Excel.Workbook workbook = excel_app.Workbooks.Open( <path to excel file>, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing); But if I

'When an item is created or modified' trigger not firing until manually saved

大憨熊 提交于 2021-01-29 03:06:21
问题 I'm running into an odd issue where my Flow will not trigger correctly upon modifying a list item. I have flow set up to copy appended Col1 content to Col2 which can then be listed as an 'updated comment' in my list's default view. It's the same logic as a SP2013 workflow I've been using, but for whatever reason the flow will not automatically trigger when an item is created/modified in my list - it will only trigger if I go back into the flow and manually save it (the Flow) again.

SharePoint Online Merge Unsupported

孤街浪徒 提交于 2021-01-27 06:41:59
问题 I am trying to merge an item into an existing list in SharePoint Online, but receive the following error: "The type SP.ListItemEntityCollection does not support HTTP PATCH method." My configuration is as stated in Microsoft documentation. https://msdn.microsoft.com/en-us/library/office/jj164022.aspx Is there a problem with the permissions for this type of item in the list? How can I modify that? I have seen no references to different types, or resolving this issue. 回答1: This error usually