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
3 answers
10k 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 ...
JLRishe's user avatar
  • 368
9 votes
2 answers
4k views

Can SPFx Webpart and Extension exist in a single app?

I'm starting to get my hands on using the new SharePoint Framework. I have general ideas about how they work now but I couldn't any document or statement that they (Client Web Part and Extension) ...
Thi Vo's user avatar
  • 364
8 votes
1 answer
4k views

Is there any alternative of model-dialog available for SharePoint Modern Page?

I am currently working on SharePoint hosted app which has custom ribbon action in list & library. I have opened modal-dialog on ribbon action(HostWebDialog) but in SharePoint modern page it is ...
Jayesh Agarwal's user avatar
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
581 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
6 votes
5 answers
4k 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 ...
csonthejjas's user avatar
5 votes
4 answers
5k 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 ...
Frank H's user avatar
  • 340
5 votes
2 answers
3k views

Can I target an existing column with a Field Customizer extension in SharePoint Framework?

When creating a FieldCustomizer extension as per the examples given, the process creates a new Site Column to which the customizer applies. I want to create and deploy an extension that targets an ...
Mike Atkins's user avatar
5 votes
1 answer
4k 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
Akshay Dattatray Nangare's user avatar
5 votes
1 answer
242 views

Does Virus affected Node Modules transfer in Contents of SPFx deployment package

When we scaffold an SPFx webpart/Extension we get many Node Modules as part of dependencies. These can be seen in node_modules folder and there are also entries in package-lock.json file. I know ...
Asad Refai's user avatar
  • 5,971
5 votes
3 answers
11k 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 ...
user1339913's user avatar
5 votes
0 answers
396 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
554 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
4k views

Using Office Fabric UI icons in a SPFx extension

I want to add an icon to one of my buttons on my SPFx list extension. In the JSON, I can amend this for an url for an icon to my CDN, but how about if I just want to use office fabric UI, any ideas? "...
Jason Hough's user avatar
4 votes
1 answer
151 views

SPO updates impact on SPFX components

Does Microsoft guarantees that web part/extensions built using SPFX won't be impacted by SPO updates ? I need to build an application with some pages that will be rich html and consumes API's like ...
CloudEngineer's user avatar
4 votes
2 answers
10k views

SharePoint Framework (SPFX) onInit() Promises

I'm in the process of getting my feet wet with SPFx Application Customizers and have a question regarding the use of promises in TS. Before my onRender() method is called inside of onInit(), I need ...
Haymak3r's user avatar
  • 197
4 votes
2 answers
3k 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 ...
ChrisbChicken's user avatar
4 votes
1 answer
3k views

spfx modern ui extension(Custom menu only showing in pages under sitepages)?

I successfully deployed my custom menu using application customizer(extension) but I noticed the menu only shows up when i view pages under sitepages. It doesn't come up when viewing list and document ...
naijacoder's user avatar
  • 4,272
4 votes
1 answer
646 views

Spfx: Change spfx Webpart environment from sharepoint online to sharepoint on prem

I have a modern web part built for sharepoint Online. I want to convert this web part to be compatible with sharepoint on-prem 2019. I have searched and found out that I would need to use spfx version ...
Student's user avatar
  • 331
4 votes
1 answer
416 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
143 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
4k views

SPFx Extension - Page Context is missing

Recently I noticed, SPFx Extension is updated from drop build to RC (release candidate) build, because of that one of my SPFx Extension Application Customizer stopped working. I went to SPFx Extension ...
ThinkB4Code's user avatar
  • 2,970
3 votes
2 answers
862 views

SharePoint Online SPFx Apps: Why use a CDN for assets, why not simply use the SiteAssets library?

Why do the SPFx tutorials configure a library or a folder in an library as a CDN to host assets like scripts, images etc? I mean what is the technical difference to hosting the assets in the ...
elsni's user avatar
  • 471
3 votes
2 answers
4k views

Deployed app customizer sppkg doesn't show up in site collection's app catalog

Following the documentation to create an app customizer and bundled with no changes to the code from the yo generator code base (@microsoft/generator-sharepoint was v1.3.4). The debug mode ?...
Mark Powney's user avatar
3 votes
3 answers
10k views

Customize master page on modern/communication site

I know that with the SharePoint Online publishing site we can develop a site where we can have the exact layout of my designed mock-up. So my question is will we be able to customize on some of the ...
user71767's user avatar
3 votes
2 answers
2k views

How to inject CSS in modern SharePoint pages using Extensions?

I've followed step-by-step this article on how to inject CSS in modern SharePoint pages using Extensions: https://tahoeninjas.blog/2018/05/08/inject-custom-css-on-sharepoint-modern-pages-using-spfx-...
jose luis gonzalez clua's user avatar
3 votes
1 answer
2k views

How to add sub commands in my SPFX List View Command Set command

My SPFX contains extension that adds two commands in Document List: Elements.xml: <CustomAction Title="My Commands" RegistrationId="101" RegistrationType="List" Location="...
23W's user avatar
  • 185
3 votes
1 answer
2k views

SPFx Loading Issue

I have created the SPFx Project with extension and Web parts. It is working well if I run gulp serve. If I refresh the browser page it is not loading. It throws an error. If I copy the same URL ...
Shahul Hameed's user avatar
3 votes
2 answers
672 views

Load SPFX webparts only after application customizer init method is completed ?

I have some webparts who have dependency of data which is obtained from application customizer. Is it possible to load webparts after application customizer
user68141's user avatar
3 votes
1 answer
1k views

ListView Command Set extension - What are supported values for "RegistrationId" and "RegistrationType" in <Elements><CustomAction>?

I would like to create a ListView Command Set Extension for modern views using a SharePoint Framework solution. Ideally I would be able to apply my "Custom Actions" only to specific list types or ...
cjmorelock's user avatar
3 votes
1 answer
2k views

Display SPFx Application Extension differently in Read/Edit mode of a Site Page

Question: Is there a utility built into SPFx or a React library to change what to render based on if the page is in read or edit mode? Or more exactly, a way to switch the rendering when switching ...
Jordan's user avatar
  • 2,804
3 votes
2 answers
1k views

Is possible put React JS on Sharepoint Extension?

I am new to SharePoint development, and in need to create a custom side panel (with React), when click on item of list view. Is it possible to use React JS while developing SPFx extension?
Leo Altissimo Neto's user avatar
3 votes
1 answer
938 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
593 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
241 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
2 answers
7k views

How to tell if page is in view/edit mode in SPFx?

Trying to build an extension to display differently based on if the page is in view or edit mode. Is there a built in way to see if a modern Site Page is in Read or Edit display mode? I know of ...
Jordan's user avatar
  • 2,804
2 votes
1 answer
7k views

_spPageContextInfo in modern pages

Using SPFx extension (application customizer) added JS files to all SharePoint pages (including modern pages), something like mentioned in below blog: Step by Step Procedure to Add a JS file to all ...
user4205's user avatar
  • 601
2 votes
1 answer
1k views

Getting Teams Context information in SharePoint Framework extensions

With SPFx 1.7 preview release, I know we can access Teams Context information in SharePoint Framework web part but not from SharePoint Framework extensions. I looked at ApplicationCustomizerContext ...
Rahul Suryawanshi's user avatar
2 votes
1 answer
418 views

Add Handling page creation events in your SPFx application customizer

I have the following inside my application customizer SPFX extension, the code is responsible to load custom CSS inside the home page https://***.sharepoint.com/sites/customeroperations/sitepages/...
John John's user avatar
2 votes
2 answers
666 views

Access Graph API from localhost (SharePoint extension)

I'm developing a SharePoint extension (ListViewCommandSet extension). I have no clue (can't find any docs about this) how to give permissions to access Graph API (even the /me call gives a 403 ...
Andrés Biarge's user avatar
2 votes
1 answer
1k 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 ...
danschdev's user avatar
2 votes
1 answer
945 views

Enable SPFx extension on a document based on specific content type

Can we enable SPFx extension on a document created based on a specific content type. I want to enable (make visible) ListViewCommandSet.CommandBar based on the document of certain content type ...
Dev8055's user avatar
  • 51
2 votes
1 answer
1k views

SPFX Field Customizer: how to get full path of document in document library?

I am creating a Field Customizer to display a hyperlink in a column in a document library view following this tutorial: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/...
elsni's user avatar
  • 471
2 votes
1 answer
2k views

Sharepoint Online/O365 custom fonts

Is it in anyway possible to add custom fonts to Sharepoint Modern sites/pages? I know it's possible to change the theme for Sharepoint Online, but it's very limited (only color palette). I don't ...
TietjeDK's user avatar
  • 159
2 votes
1 answer
622 views

SharePoint online When user clicks on New/edit item need to redirect to site page

Need to redirect to site page when user clicks on new/edit item in SharePoint online new experience, site page will have spfx app to add or edit item. How could we achieve this functionality, in ...
AravindHackett's user avatar
2 votes
1 answer
410 views

SPFX get shared document URL by language

I want to get the document folder path url by selected language. For etc. English - Shared%20Documents German - Freigegebene%20Dokumente So, how do we get Shared documents path according to selected ...
Sandun Tharaka's user avatar
2 votes
1 answer
90 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 ...
Gennady G's user avatar
  • 1,623
2 votes
2 answers
1k views

Copying the “normal” (classic) link of an item in SharePoint Online (New Experience)

I want to copy the old school classic link from a document which looks like http://team./sites/sitename/libraryname/imagename.PNG . However, Sharepoint online generates a link like "https://tenant....
Talha Imtiaz's user avatar

1
2 3 4 5
7