The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [spfx-extensions]

SharePoint Framework Extensions let developers extend the user experience of SharePoint, providing ways to customize more facets of the SharePoint experience including notification areas, the toolbars of SharePoint, and the views of list data.

Filter by
Sorted by
Tagged with
12
votes
3answers
3k views

How does one pass parameters to SharePoint Framework Extensions in practice?

I am currently in the process of getting up to speed with SPFx and have gone through the Extensions Getting Started guide of the official documentation and skimmed a fair portion of the other ...
0
votes
1answer
1k views

WebParts keep loading untill I scroll down the page or perform a zoom

environment:SharePoint online;Sharepoint Framework; Programming languages:TypeScript During page loading, sharepoint custom web part keeps on loading Nothing does change untill I scroll down the ...
6
votes
1answer
1k views

Detect navigation change in SPFX Application customizer

I have a SPFX customizer that displays a banner in the topPlaceholder. When the page loads, if it's a list, then it performs a calculation and then displays the banner. When I move from one library ...
1
vote
1answer
33 views

Query site collection property bag in SPFx extension

I am building an SPFx Application Customizer for a Powell365 project, and trying to have it use custom properties from the current site collections's property bag. I already managed to get these ...
5
votes
3answers
598 views

How to update ListView within spfx commandset to show new item

Im working on a pretty simple spfx CommandSet extension. Its goal is to duplicate an item, when an item is selected. I have the working code. My problem is, that i searched the context property, but ...
0
votes
0answers
14 views

SPFx Command Set on a subset of document libraries

I am working on a scenario where I have multiple document libraries and I would like to enable a Command Set button for custom approval only on a subset of those libraries, so effectively have 2 types ...
0
votes
0answers
34 views

Save Search History with custom search bar in modern page

I need a help in saving the search history for custom search in SharePoint modern page. I have added the Enterprise Custom Search but i am quit lost to enable or add this feature to spfx to save the ...
0
votes
1answer
25 views

SharePoint Online Mega Menu

How can I create a Mega Menu using term-sets in SharePoint online? Any help would be appreciated. Thanks in advance.
0
votes
0answers
25 views

SPFX List View Command Set Extension Issue

I have couple of issues in my SPFX Command Sets Extension. Actions Buttons are keep adding in toolbar on list item selection. I have added two different Custom Action(with same command Extension, but ...
0
votes
1answer
22 views

Change tenant logo on a specific site collection (O365_MainLink_TenantLogo)

I know that changing top nav suite is bad practise, but I got a client that want to make a generic domain from a site collection (B2B)-> change tenant logo. I don't know any solution to change the ...
1
vote
1answer
34 views

How to install List view command set extension in a site collection after deploying it to app catalog using CSOM?

I have created a ListView command set extension using SPFx and upload it in the app catalog. Now I want to install this extension for only particular sites. I tried adding it as a custom action but ...
1
vote
1answer
20 views

Is there something like “View Customizer” in SPFx?

There is Tiles example on Github. But this is JSON Column Formatting. Is there a way to have more control above View rendering from SPFx web-part? I know field customizers can change behavior for ...
0
votes
1answer
29 views

Custom download link sharepoint Modern library

I have been asked if we can create a custom download link on a SharePoint Modern library, replacing the existing one, which saves the file with a name made from file metadata. I am assuming that this ...
4
votes
4answers
2k views

SPFX - Listview command - Get current folder

I have created a SPFX Listview command and I need to get the current URL of the folder that I am in. Does anyone know if this is possible? I can't find any documentation regarding this on sp-pnp-js ...
0
votes
0answers
11 views

SharePoint extension not loading

I have created a sharepoint extension to load css on site using private cdn. I am able to add it on site using Add-PnpApp. However, when i try to Add-PnpCustomAction on site, it does add on site but ...
4
votes
0answers
48 views

When navigating from one folder to another, the navigatedEvent doesn't fire in SPFx Extension

I have some logic based on which folder User is in. But it fails as when I navigates between the folder the navigatedEvent is not firing. Go to Root Folder add some console and then navigate to any ...
1
vote
1answer
41 views

How to Print a Document from the Modern Library in SharePoint Online?

I have a certain use case of being able to print a document directly from the modern library using a button. Almost a one click solution. I had a quick look around and found ways to print a modern ...
1
vote
0answers
21 views

Isolated extensions

Since 1.8 it is possible to make web parts isolated, https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/isolated-web-parts. I wonder if there is any way to make an extension isolated ...
2
votes
1answer
45 views

Spfx extension disappears from page

I have created a spfx extension for my communication site, it is working perfectly when page is reloaded. When I click on search bar on the page then it takes me to the search page and when I return ...
0
votes
0answers
21 views

SPFx Solution has a warning stopping production builds has anyone seen it before?

I have been supporting an SPFx solution and I am required to make a small change however it will no longer build. I have tried pulling the last version back down from our repository but it has the ...
0
votes
0answers
24 views

Spfx extension - Code to run after search bar loaded on page [duplicate]

I am using communication site and adding some html elements below search bar like radio buttons. Normally the search bar takes few seconds to appear on page. I want to use something like onload ...
0
votes
1answer
89 views

SPFX extension placeholder for search bar

I am trying to add some html elements like radio button below my search bar in communication site i.e. to a modern page using spfx extesion. So initially i tried to do it using javascript by just ...
0
votes
0answers
39 views

Sharepoint Online cross site lookup schema.xml for field extension

I try to create a cross site Lookup field extension for Sharepoint Online. The Field extention is working perfectly, as long as both lists are at the same Website but I need it to work cross site. ...
0
votes
1answer
135 views

Unable to Load CSS from the style library using SPFx Extension

I want to load the CSS file from Style Library of the site. I have created the SPFx extension of type Application Customizer. The purpose of the CSS loading is to change the UI of the web parts. I ...
0
votes
1answer
49 views

Q: Set Folder's path according to it's title in a list with SPFx

I am creating a folder inside a List with the following code: TypeScript import {sp} from "@pnp/sp"; const shpList = sp.site.rootWeb.lists.getById(ListId); shpList.items.add( { Title: folderName, ...
1
vote
0answers
81 views

SharePoint Modern Custom Footer SPFx Customizer - Multiple scrollbars

We have created a custom footer using SPFx application Customizer to provide information like social media icons, feedback button, site map (html) etc. This is now occupying more than 90% of content ...
1
vote
1answer
599 views

SharePoint Online Custom modern page Footer using Application Customizer

We are creating a custom footer though SPFx Application Customizer for modern sharepoint pages. But our requirement on the Footer is to show the footer with a increased height. Once we deployed the ...
1
vote
1answer
121 views

Is there a way in SPFx to create custom action in “PersonalAction” group

XML element method is working for classic pages, for modern pages it is not working. Using SPFx list view command set I can create ECB menu for list item level I am unable to find anything for ...
0
votes
1answer
65 views

Can we use column formatter with command set customizer?

Can we use the listview command set extension to change the format of the view or column in SharePoint online? If yes, how? And is there any other way to create a template like feature for this? ...
1
vote
1answer
150 views

SPFX Webpart- “Error initializing application” after refreshing page

SPFX app is created and deployed tenant level. IF it is add to a page at site collection level (ex:https://text.sharepoint.com/sites/ABC) it is working perfectly. If it is added at subsite level (ex:...
1
vote
0answers
42 views

Custom Audience Targeting

I'm doing some research on how to create a custom solution for audience Targeting since there is no build-in support yet. Do anyone have some ideas on how to achieve that? I have already some ideas, ...
0
votes
1answer
187 views

SPFX open new list item using modal dialog

The code below opens a new item in Iframe/modal dialog. But when the user saves or closes the modal form i would like it to be closed and not redirected to any other page. Is there any way I can ...
0
votes
1answer
120 views

Associate Field Customizer with existing field using feature framework

According to Field Customizer documentation it is possible to associate it with existing SharePoint field using feature framework. But I am not able to make it work. I am trying to customize the "Name"...
1
vote
1answer
51 views

Changing the URL of “Name” column in document library

Is there any way to rewrite the URL of "Name" column in a document library's modern view? "Field Customizer" is an option but then I will have to hide/delete "Name" column, which is not a good idea ...
0
votes
2answers
194 views

Display Rich Text in SharePoint Online

I am trying to display the rich text in a list item . I tried using the JSON formating, but it does not seem to have any support for "Enhanced rich text". The txtcontent converts the rich text to ...
0
votes
1answer
60 views

Programmatically Deploy SPFx ListViewCommandSet Tenant Wide

I have a SPFx list view command set which is deployed tenant wide. More details here Is it possible to perform the steps mentioned in the article programmatically. Basically I want to upload the ...
1
vote
2answers
176 views

Q: Create list item inside folder with SPFx

I am trying to create an item within a folder in a list. Is there an approach with pnpjs that looks like the following? TypeScript import {sp} from "@pnp/sp"; const shpList = sp.site.rootWeb.lists....
0
votes
2answers
62 views

Q: Create visible folder in list with SPFx

Having the following code in an application extension: TypeScript import {sp} from "@pnp/sp"; /*******************************************************************/ const shpList = sp.site.rootWeb....
0
votes
0answers
62 views

Trying to get a File from OneDrive as PDF causes CORS error on redirect

I'm trying to get the content of a file as a pdf from Onedrive, however when getting the File via MSGraphClient, it just returns an error in the browser. MSGraphClient call:client.api(`/me/drive/...
1
vote
1answer
406 views

Can I add more than one SPFX extension - Application Customizer in one solution?

I am trying to add more than one SPFX extension in my solution (Application customizer in this case - one for header another for footer) but after deployment I only see one extension in my site. Am I ...
4
votes
2answers
1k views

NodeJS not compatible

when I run gulp serve I get the following error. Your dev environment is running NodeJS version v10.15.0 which does not meet the requirements for running this tool. This tool requires a version of ...
0
votes
0answers
15 views

SPFX - PNP Get Termset that is not available for tagging

I have a spfx extension where I need to get terms from a TermSet which is not available for tagging. I am trying to use the terms for custom Footer Navigation Links. Currently I am using PNP JS to ...
1
vote
1answer
316 views

What is difference between SharePoint Framework (SPFx) Extensions and SharePoint Framework (SPFx) Web PART

I have started working on SharePoint Online. Where I have to use SPFX. What is the Difference between SharePoint Framework (SPFx) Web Part and SharePoint Framework (SPFx) Extensions
1
vote
0answers
36 views

SPFx extensions will work in SharePoint mobile app?

Platform: SharePoint mobile app This question may sounds silly but need a definite answer. I have created multiple SPFx web parts and added them to pages. These are working fine, when I am trying to ...
0
votes
0answers
56 views

Breadcrumb Navigation in SharePoint Online for multiple Modern communication site & Team site using spfx code

I am trying to create breadcrumb navigation for communication site in SharePoint online using SPFX, But i have multiple communication site, how can we make breadcrumb navigation for different ...
0
votes
0answers
517 views

Show Modal dialog in full page SPFx

I have created a web-part which search the images from library and shows the result. when I click on image it should show in the popup as preview however it shows withing the iframe only instead of ...
0
votes
0answers
22 views

Extend Document Information Panel (DIP) with Data from API

The document information panel in SharePoint Online modern view Document Library shows the properties configured in the Site Content Type as well as general sharing or modification information from ...
0
votes
1answer
264 views

Extension working in layout pages but no longer working anywhere else

I've developped a custom Extension with SPFX. This custom extension performs a Search. I deployed it. Everything worked totally fine during 6 months. And now, out of the blue, my extension is only ...
4
votes
2answers
1k views

Can't deploy SPFx Extension tenant wide

When trying to deploy a SPFx Extension tenant wide, I get an error of "Sorry, something went wrong." The extension works locally. It also works if I install it to individual sites. We want to deploy ...
0
votes
0answers
8 views

Sharepoint Online Custom App Extension - Create word document based on content type

I'm trying to create a App Extension in Sharepoint Online that creates a new document based on content type. I know that I can create a file using Rest API, I'm just having a difficult time ...