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.

147 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
1 answer
4k 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 ...
Cann0nF0dder's user avatar
  • 1,813
7 votes
0 answers
583 views

Automatically deploy SPFx app on new site collections in SharePoint 2019

I have SPFx app that contains an Application Customizer. I would like to have this app either a) deployed tenant wide or b) automatically added to a site collection when it is created For a) there ...
Matthias's user avatar
  • 2,087
5 votes
0 answers
397 views

SPFX Getting Sharepoint Online Modern Page ListItem Icon Programatically

I'm trying to get Modern Page ListItem icon path for some implementation. I understand that for SharePoint OnPrem / Online Classic, it will be located under /_layouts/15/images/<<icon_filename&...
Eric's user avatar
  • 176
5 votes
0 answers
559 views

SPFx Extensions - popup “loading debug scripts” does not appear in a list

I built the application as described in this tutorial The popup appears on the site, but does not appear in the list of this site. Did anyone have a problem of this type? This path works: /sites/...
John Dps's user avatar
4 votes
1 answer
424 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 ...
Dhruvil Prajapati's user avatar
4 votes
0 answers
144 views

Application Customizers no longer working on dev sites

My Application Customizers have stopped working on "Development" site templates on my developer tenancy. I get the following warning in the browser developer tools. Invalid location: Extension....
Tonyp543212003's user avatar
3 votes
1 answer
979 views

SPFx Command Bar not working after deployment

I am working on SPFx Command Bar and everything is working as expected when I do 'gulp serve' and run it in localhost. But when I tried to deploy the same in AppCatalog and installed the same to my ...
Ravi Khambhati's user avatar
3 votes
1 answer
1k views

What is the correct way to create a custom action using REST API in SharePoint Online?

I'm trying to use Microsoft Flow and the Send an HTTP request to SharePoint action to deploy an SPFx application customizer to a modern team site. I'm able to use the /_api/Site/UserCustomActions ...
Petter Skodvin-Hvammen's user avatar
3 votes
0 answers
1k views

SPFx: Customize field behavior similar to JSLink in classic list forms

We use jslink on the field to customize the UI and behavior of fields on classic SharePoint forms and list views (cascading, colors etc.). How can we make this work in the Sharepoint modern experience ...
Crow Canyon's user avatar
3 votes
0 answers
596 views

SPFX Extension Field Customizer onRenderCell calling base method

Currently i'm implementing field customizer to update document library list item icon. I updated Field XML Schema definition through CSOM. It's working well. But for certain condition, I need to show ...
Eric's user avatar
  • 176
3 votes
1 answer
243 views

SharePoint Framework Extension 'Invalid Package' error

I am currently working on a SPFx extension to add JavaScript on all modern pages. I am following Chris O'Brien's blog to create this. I was able to create and debug it but when I package it up and ...
Kiran Chauhan's user avatar
2 votes
0 answers
541 views

Is there any way that I can use Application Customizer extension in whole site and only for one page?

I have created a Application Customizer extension of permission for single page URL. Is there any way that I can use this extension in whole site?. If yes, how to do it?
Nabeel Karvinkar's user avatar
2 votes
1 answer
436 views

SPFX - Update list with a new field fails

I'm trying to deploy a new field (column) to a custom list that has been deployed using a SPFx Extension. The field gets added to the site, but it does not get added to the ContentType. I've been ...
hellbe's user avatar
  • 25
2 votes
1 answer
426 views

Get page load time in modern SharePoint site

I need to run some JS script on each page in modern SharePoint online communication site so I created SPFx extension and added to the site. One of the things I need to do is to get page loading time (...
user3154163's user avatar
2 votes
1 answer
1k views

SPFX: How to debug an application customizer extension

I am new to spfx and have to write an application customizer that changes the key of a query in the url. I have already implemtend this functionality and now want to test/debug. When I run gulp serve, ...
maxE's user avatar
  • 131
2 votes
1 answer
278 views

I don't want to debug my SPFx ListView Command Extension in production

I have an SPFx solution with a ListView Command Extension. I ran the following to create the .sppkg file for deployment to production: gulp build gulp bundle --ship gulp package-solution --ship I ...
cjmorelock's user avatar
2 votes
1 answer
102 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 ...
KumarV's user avatar
  • 2,680
2 votes
0 answers
366 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 ...
Ashwani Singh's user avatar
2 votes
0 answers
409 views

Sharepoint Extension ListView CommandSet - not showing

I created a site page and then inside that I added a List webpart, and then choose the list I wanted. Then I put the link of that page in my extension on pageUrl in serve.json. But the extension is ...
Dan Sto Domingo's user avatar
2 votes
1 answer
130 views

Trouble getting SPFx up and running on Ubuntu

I'm having trouble getting SPFx up and running on Ubuntu. I'm using the following commands sudo apt-get install nodejs -y sudo apt-get update -y sudo apt-get install build-essential -y sudo npm ...
Jsquared Solutions's user avatar
2 votes
1 answer
2k 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 ...
DvG's user avatar
  • 2,332
2 votes
0 answers
709 views

Using Custom JS in SPFX (SharePoint Online Modern Sites)

I have created a footer using custom js which fetches all the terms inside the termstore and displays it in the footer for the page and I have referenced the custom js and css files in the custom ...
user9634039's user avatar
2 votes
1 answer
1k 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 ...
SPKan's user avatar
  • 151
1 vote
1 answer
292 views

SharePoint Online modern Footer created using SPFx Extension Application Customizer is freeze at the bottom of screen. How to place at bottom of page?

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 ...
Vinayak Dhakol's user avatar
1 vote
1 answer
216 views

SPFx extension is not loading term store properties

I have extension which uses the term store as navigation and on the other hand, I have dropdown list where it has the normal text (SiteA, SiteB, SiteC) with different SP site links on it (href). So, ...
striker92's user avatar
  • 111
1 vote
1 answer
445 views

Spfx extension Clear cache or hard refresh

I have four different extensions with different languages with texts on it, I use dropdown on top placeholder to switch between different sites. However, when I switch from English to Polish I still ...
striker92's user avatar
  • 111
1 vote
0 answers
102 views

Listview Command Set on SharePoint 2019

Has anyone succeeded in building a Listview Command Set on SharePoint 2019? I am using SPFx 1.4.1 as recommended. Problem: the custom buttons in the ribbon disappear after opening a different page (e....
Paul's user avatar
  • 57
1 vote
1 answer
333 views

How to change SharePoint Site language programmatically using spfx extension

it there way to change language dropdown of SharePoint site such as English to German using spfx solution ? I am looking function like pagecontext.setLanguage(1031);
DevÁsith's user avatar
1 vote
1 answer
98 views

How to fix FilterPane in SharePoint Online

I want to fix the Filters Pane in my SharePoint Library. Also when I open my Library, Filter Pane should be opened. Maybe it is possible to make in Application Customizer. Could you tell me please? ...
Propool's user avatar
  • 37
1 vote
0 answers
412 views

SPFx extension customizer JS files is not loading on production tenant of my SharePoint Online site

I have two different tenant, one is for development things and another for production. I have developed one SPFx extension and deployed on development and production site. It was working perfectly ...
Ajay Kumar's user avatar
1 vote
1 answer
384 views

SPFX webpart shows at r is not a constructor error randomly

I frequently get the above error in my dashboard page which consist of few spfx webparts. This error appears randomly 1 in 10 times, The spfx webparts do not consume any pnp framework or jquery nor it ...
ThatThatGuy's user avatar
1 vote
1 answer
407 views

Trigger Republish button using spfx extension while on edit mode

I am trying to manually trigger the republish event while editing the SharePoint page using spfx extension as below . but there is a error in savePage api . is there way to do it ? const publish = ...
DevÁsith's user avatar
1 vote
1 answer
552 views

Is there any way to open the default Share item dialog from the SPFx webpart

Is there any way to Open the Default Share Item dialog from the SPFx web part's details list (Modern dialog)? My requirement is to open the default OOTB share item dialog (as displayed above) when ...
Krunal Patel's user avatar
1 vote
0 answers
1k views

SPFx Single Sign On Redirect Page

We have a simple SPFx Application Customizer which renders a global navigation to all sites. We are using pnp to fetch items from a config list. The component is running fine. Each time we open a new ...
Ronny's user avatar
  • 95
1 vote
3 answers
1k views

SharePoint online modern experience hide suiteBar, left navigation and top ribbon using SPFX showing it for few second then its hide

I am hiding suiteBar, left navigation and top ribbon using SPFX extension but for few second its showing up. I don't want to show it for few second also. I tried to hide it from master page alternate ...
user2343766's user avatar
1 vote
0 answers
71 views

What's the pros/cons of updating vs not updating version number on SPFx webparts or customizations?

In SPFx development, what is the benefits or disadvantages of updating or not updating the version number when updating in the app catalogue? The best practice appears to be to update it to something ...
omega's user avatar
  • 2,160
1 vote
0 answers
56 views

How does updating SPFx webparts/extensions work between tenant wide/non-tenant wide deployment models?

I am trying to understand the difference between deploying spfx customizations between tenant wide and non tenant wide (and differences when updating/not updating the version number). Per my current ...
omega's user avatar
  • 2,160
1 vote
0 answers
109 views

Can the onListViewUpdated() method run async?

I need to implement a button that is only visible if the user has edit permissions for an item in a list. Therefore I have to make an async api call in the onListViewUpdated() method, but I does not ...
maxE's user avatar
  • 131
1 vote
0 answers
697 views

Refresh the ListView from the SPFx Extension

I have implemented an extension that moves the file to a particular location. everything works fine but once the operation is completed I want to refresh the listView so the file which is moved should ...
Dhruvil Prajapati's user avatar
1 vote
1 answer
339 views

Can I combine provider hosted app and spfx app in a single app?

I am building a product which is available in both version of SharePoint online i.e. Modern as well as classic view. I have developed provider hosted app as well as spfx app, now the problem is that ...
Dharam Padia's user avatar
1 vote
1 answer
2k views

using SP.UI.Modaldialog.showDialog(options); in spfx listview extension is executing but no dialog is visible

Hi I'm trying to open sharepoint dialog using spfx extension in which using typing able to get the SP.UI.ModalDialog Object in ts file of the extension. And the code # SP.UI.ModalDialog....
user27178's user avatar
  • 372
1 vote
0 answers
150 views

Show the Total Count of the column value generated using SPFx Field Customizer

I have developed a Field Customizer Extension. This renders the item count based on the logic for each cell in the Document Library. Now, I want to show the total of the count at the bottom of the ...
Dhruvil Prajapati's user avatar
1 vote
1 answer
253 views

In SharePoint Framework Extension (Application Customizer), are there any other placeholders that can be used aside from the header and footer?

We are trying to add a drop-down control in the command bar of a page or beside the share button on a SharePoint Online site. May we know if there is a specific placeholder we can use to achieve this?...
Dianne Lee's user avatar
1 vote
1 answer
204 views

SPFX for favicon published to SharePoint 2019 server not working

I have created a SPFx framework extension to change the favicon of my SharePoint 2019 on-premise. I followed below link, everything works fine while testing. but when deployed to app catalog it doesn'...
Binu's user avatar
  • 11
1 vote
0 answers
196 views

How to add Multilevel ListView Command Set buttons using SPFX Extensiton?

In manifest.json file I have structure like: "items": { "COMMAND_1": { "title": { "default": "Command One" }, "iconImageUrl": "_layouts/15/images/itslidelibrary.png", "type": "command", }, "...
Y. Jagtap's user avatar
  • 323
1 vote
0 answers
1k views

Invalid selected rows in onExecute() of SPFX ListView Command set

Simple code just built from yo @microsoft/sharepoint wizard: Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/...
23W's user avatar
  • 185
1 vote
1 answer
333 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 ...
Mahesh kumar Chiliveri's user avatar
1 vote
1 answer
691 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 ...
Krishant L's user avatar
1 vote
0 answers
31 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 ...
Abris's user avatar
  • 141
1 vote
0 answers
160 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, ...
Kevin Meßmer's user avatar