Questions tagged [office-dev-pnp]

7 questions
4
votes
1 answer

How to authenticate our .NET console application against SharePoint online if we have `DisableCustomAppAuthentication` set to true

We have the following:- SharePoint online tenant recently created Windows server 2019 .NET console application which have some code that integrates with SharePoint online The .NET console application runs on schedule basis using windows task…
1
vote
1 answer

how to get modifiedby property of a file for showing file details sharepoint C#

I want to display files from a sharepoint folder that were modified by username. please help me for this. Also tell me how to show this file with sorting order by datetime. I tried using docName.Add(file.ModifiedBy); property but its not available,…
1
vote
1 answer

Office Excel AddIn Custom Function Resource Download Error

I used yo office to create a Excel AddIn with custom functions. I made some changes based on following Configure your Office Add-in to use a shared JavaScript runtime to use shared runtime. After starting the project, I am able to check the shared…
Edward
  • 28,296
  • 11
  • 76
  • 121
0
votes
1 answer

Connect-PnPOnline gets stuck on UseWebLogin - but only sometimes

We have a script that loops through a CSV input of sites and we don't want to login for every site. Up until a few days ago, it was working fine with the UseWebLogin method, but now we're seeing an error. The script has an initial connection…
0
votes
2 answers

unable to download file with clientid and client secret

I need to download files from a list from SPO using console app. Since the users have MFA enabled, I am using clientid, clientsecret. I am able to read the metadata but when I am trying to download a file, it throws 401 unauthorized exception. I…
Ed K
  • 1
0
votes
1 answer

OfficeDevPnP.Core.AuthenticationManager GetWebLoginClientContext throws "Navigation to the webpage was canceled"

I have a small application that connects to a sharepoint-list. For this, we use the following (VB.NET) code: Imports Microsoft.SharePoint.Client Public Class SendDataToSharePointList Private SharePointSite As String '= download from…
-1
votes
1 answer

Excel add-in taskpane with ReactJS and NextJS, is it possible?

Could you help me understand if NextJS can be used with excel taskpane when app is being developed using ReactJS, if so could you guide me with any example in the web?