sharepoint
111 TopicsAdd-PnPFile : Access denied. You do not have permission to perform this action or access this resour
I am trying to upload a file (actually copy a file from a local machine) to folder in OneDrive for Business $UserName="user@domain" $pwd ="StrongPassword" $SiteUrl = "" $encpassword = convertto-securestring -String $pwd -AsPlainText -Force $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $encpassword Connect-PnPOnline -Url $SiteUrl -Credentials $cred echo "connected" Add-PnPFile -Path '.\localFileName.docx' -Folder 'Documents' I get : Add-PnPFile : Access denied. You do not have permission to perform this action or access this resource. I'am global admin in O365 and in Azure Portal18KViews0likes2CommentsThe Business Data Connectivity Metadata store is currently unavailable. (External SharePoint List)
I'm trying to create an external SharePoint list to a SQL Table (Done this before). However, when trying to complete the step of External Content Type I am having no luck Connecting to SharePoint Online through the Designer tool then navigating to External Content Types is not working for me. I first get: The Business Data Connectivity Metadata store is currently unavailable. Then I get the following when clicking "External Content Type": The HTTP Service located at https://<org>.sharepoint.com/_vti_bin/BDCAdminService.svc is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later. (The remote server returned an error: (503) Server Unavailable.Solved10KViews0likes5CommentsConnect to SPO from Azure automation runbook using a certificate
How to connect to SPO using Pnp powershell Connect-PnpOnline using a certificate with script being executed from Azure automation runbook. I have exported a self-signed certificate and uploaded to Azure Automation. When I use the following it does not work. Another thing I noticed is that Connect-PnPOnline requires a certificatePath paramater. What are my options here when certificate is stored in Azure automation. This does not work: Connect-PnPOnline -Thumbprint "3234234" -Url $url -ClientId $clientId -Tenant "tenant.onmicrosoft.com" Alternative, with script being run from runbook what could I use for path Connect-PnPOnline -CertificatePath "??????" -CertificatePassword "3234234" -Url $url -ClientId $clientId -Tenant "tenant.onmicrosoft.com"9.9KViews0likes9CommentsSharePoint Online Search Image URL
Dear all, I have created a classic SharePoint page in SharePoint Online and added the Search Results Web Part to it. I have configured the Search Results Web Part to result images from a specific document library. What I find unfortunate, is when I click on a result, it opens the DispForm.aspx and therefore shows all properties of the image, an not the image itself! It navigates to this Path: https://x.sharepoint.com/Foto/Forms/DispForm.aspx?ID=92&RootFolder=/Foto/kerstfeest%202016 I am using the out of the box Display Template and Result Type. How could I overcome this issue? I want SharePoint to follow the 'PictureURL' instead of 'Path'. I tried looking into the Display Templates and several web articles, but for me that is like finding a needle in a haystack. Thanks for all help provided! Kind regards, JoostSolved8.6KViews0likes5CommentsAdding People to the People Web Part Programmatically (using PowerShell maybe?)
There doesn't seem to be any documentation relating to the modern web part components. I can add a modern web part component to the page like this: Add-PnPClientSideWebPart -Page $home -DefaultWebPartType People But I cannot work out how to actually add people to it. Any thoughts greatfully received (although I don't hold out much hope -- it's very quiet around here).Solved8.2KViews1like6CommentsUsing PowerShell to change page banner image
Hi Folks, Currently have a automatic site creation tool up and running. I know using the PnP engine no content will be included in the template, but is there any way on the newly created site on the main home page (Modern Page) I can change the banner image using PowerShell to reference an image stored somewhere else? Thanks!Solved8.1KViews0likes4CommentsSharePoint Drop Down List Other Option
Hi We have a Sharepoint List and have a field set to "Choice" In option we have the 3 drop down options with the last one being "other" We have Allow 'Fill-in' choices tick to YES We basically want people to be able to being a list of the top 3 most common options but if they need they can type in a answer. This works, however during testing we noticed that when we put in a manual entry for the "other" it saves it and then next time we add another new list the previously added "other" option is added to the drop down this. eg original drop down option 1 2 3 other Create a new item in the list and during the creation of the entry on the drop down list manually add a entry of 4 When you create another new item you dropdown will now give the following option 1 2 3 4 ** other So 4 was added because there is a item in the list with the number 4 in Is there a way to stop this happening, so the drop down list is always kept to 1 2 3 other But also allow us to manually add a entry?7.6KViews0likes1CommentHow to get an accessToken using MSAL library inside a Sharepoint Web Part?
I have developed a Sharepoint Web Part where I need to obtain the accessToken. To obtain the token I have used a MSAL library. My problem is the next one: I'm logged in my Sharepoint but when the Web Part try to retrieve the accessToken something fails in the authentication and appears this error: xxxx-web-part.js:1838 ClientAuthError: User login is required. at ClientAuthError.AuthError [as constructor] (https://localhost:4321/dist/xxx-web-part.js:2057:28) at new ClientAuthError (https://localhost:4321/dist/xxxx-web-part.js:630:28) at Function.7ZR7.ClientAuthError.createUserLoginRequiredError (https://localhost:4321/dist/xxxx-web-part.js:682:16) at https://localhost:4321/dist/xxx-web-part.js:2916:103 at new Promise () at UserAgentApplication.ZES5.UserAgentApplication.acquireTokenSilent (https://localhost:4321/dist/xxxx-web-part.js:2905:16) at UserAgentApplication.descriptor.value [as acquireTokenSilent] (https://localhost:4321/dist/xxxx-web-part.js:2543:38) at xxxWebPart.PlTk.xxxxWebPart.render (https://localhost:4321/dist/xxxx-web-part.js:1828:19) at xxxxWebPart.t._renderWithAccessibleTitle (https://spoprod-a.akamaihd.net/files/sp-client/sp-webpart-workbench-assembly_en-us_27e01b6941bf5cdddecc695bd3bdbb95.js:21:585834) at https://spoprod-a.akamaihd.net/files/sp-client/sp-webpart-workbench-assembly_en-us_27e01b6941bf5cdddecc695bd3bdbb95.js:21:585352 How can fix this problem?. I would like that if I'm logged in Sharepoint obtain the accessToken without relogin into the system. This is my code: export default class MyWebPart extends BaseClientSideWebPart <IWebpartProps> { public render(): void { const config = { auth: { clientId: "xxxxxxxxxxxxxxx", authority: "https://login.microsoftonline.com/yyyyyyyyyyyyyyyyyyy" } }; const myMSALObj = new UserAgentApplication(config); let accessTokenRequest = { scopes: ["user.read"] } myMSALObj.acquireTokenSilent(accessTokenRequest).then(function(accessTokenResponse) { // Acquire token silent success // call API with token let accessToken = accessTokenResponse.accessToken; let scopes = accessTokenResponse.scopes; }).catch(function (error) { //Acquire token silent failure, and send an interactive request console.log(error); if (error.errorMessage.indexOf("interaction_required") !== -1) { myMSALObj.acquireTokenRedirect(accessTokenRequest); } });7.4KViews0likes1CommentCross-domain request in SPFx
How can I make a cross-domain request in a Client Side Web Part built with the SharePoint Framework? My need is to access SharePoint 2016 data from a SharePoint 2016 site in another domain (same credentials). I found a crossDomainWeb method in the documentation for the add-in model, but nothing for SPFx.5.9KViews0likes2Comments