SharePoint Framework
10 TopicsHow to Add/Update OOB Navigation Item Target Audience using Rest API/PNP JS in SharePoint Online
Hi, I want to update/add Navigation Item in OOB Navigation with Target Audience and Open in New Tab using Rest API/PNP JS in SharePoint Online Modern. Please guild me on this. Thanks in advance1.3KViews1like1CommentOn a docuement library how to change default name of a new document using SPFx
I started to learn SPFx and i need your help, In a document library i have created a word template, so every time i click on new and select the template a new template creates with name "document.docx". Is there any possibility to change this default name to something else? Thanks1.1KViews1like0CommentsHow to deploy SPFX Field Customizer solution automatically on all sites
Hi, I have created one SPFX field customizer solution to customize look & feel of column in document library. I am creating that column when we install the SPFX field customizer. I would like to install the this solution automatically on all sites of site collection. I am deploying the SPPKG file on site collection level app catalog. I have set skipfeaturedeployment = true in package-solution.json still it is not installing the solution on all sites. If I will install it manually then it works fine with particular site. Need help to install automatically on all sites. Thanks,1.1KViews0likes0CommentsSharePoint SPFX connected web parts using Dynamic data
I have requirement of connecting to SharePoint Online file viewer webpart from a custom webpart. Plan is to build a custom spfx webpart with dynamic data and file viewer web part can connect to the new webpart which we are developing. According to this https://docs.microsoft.com/en-us/sharepoint/dev/spfx/dynamic-data we need to know the properties which we need to emit from the new webpart which we need to develop. Is there anyway we can figure format and properties expecting by the file viewer webpart.2.1KViews0likes0CommentsSPFx on Communication Site On-Prem
Is there a way to add a SPFx app customizer to a communication site template in 2019 on-prem? Essentially we have custom actions in 2016 that we converted to an app customizer for 2019 to load a JS file. The solution works fine on all other 2019 templates except the communication site template ignores it. Is there another method we should be using? Thanks!2.4KViews0likes4CommentsHide Site Header communication site
Hi. We are trying to hide the Site header in a communication site, and we would like to know if there is any possibility of doing so. We are trying with some css or js, injected in a webpart and SPFx extension, but there is some flickering, because the code is not executed before the header is showed. In addition, to achieve this we are depending on some CSS classes that we understand could change. Is there any supported way to do it? Or will be supported in the future? CC: VesaJuvonen Many thanks.1.9KViews11likes1CommentSPFx Web Part - Call Dynamics NAV Web Service
Hi, I've been playing around with trying to make a web part that will call a Dynamics NAV OData Service. I followed the same process as I did when connecting Power BI to NAV. I registered NAV in the Azure Management Portal as per: https://docs.microsoft.com/en-gb/dynamics-nav-app/ui-how-register-dynamics-nav-azure I then tried to connect via my web part as per: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/connect-to-api-secured-with-aad#how-it-works In the Developer Tools pane when I add the web part to a page I get the following: "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." Within my package-solution.json file I make a request to grant user_impersonation permissions, which I did. But as I'm typing I'm thinking that in the service tier for OData Services we use NavUserPassword Authentication, so is SharePoint trying to use my Office 365 login to access the data? All of this has just been trial and error, so if anyone has done this before or has any pointers on something I could try next that would be great. Thanks... John928Views0likes0CommentsSPFx Extension: Dependency on css class names
Hi I've created a SharePoint Framework Extension that does the following: Adds a print stylesheet (@media print) Hides elements. Applies a watermark. Adds a custom footer to the bottom of the document (JavaScript injection), not the bottom of the page (application customizer). Both the above are dependent on CSS classes within the rendered page: Hidden when printed: root_db29caec, nav_995e56d3, #SuiteNavPlaceHolder, commentsWrapper_3f0ee14c, banner_995e56d3, feedback_674c19bf Footer appended to: CanvasZone--read Should I be concerned about these class names changing? If yes, what are the alternatives? Thanks.2KViews0likes2Comments