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 ...
8
votes
1answer
2k 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 ...
7
votes
2answers
1k 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) ...
7
votes
0answers
269 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 ...
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 ...
5
votes
1answer
166 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 ...
5
votes
2answers
1k 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 ...
5
votes
3answers
567 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 ...
5
votes
0answers
200 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&...
5
votes
0answers
397 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/...
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 ...
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 ...
4
votes
1answer
1k 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 ...
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 ...
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 ...
4
votes
0answers
130 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....
3
votes
1answer
1k 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 ...
3
votes
2answers
236 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 ...
3
votes
2answers
3k 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 ...
3
votes
2answers
407 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
3
votes
1answer
1k 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 ?...
3
votes
1answer
534 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 ...
3
votes
0answers
625 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 ...
3
votes
1answer
113 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 ...
2
votes
2answers
3k 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 ...
2
votes
1answer
284 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 ...
2
votes
1answer
323 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/...
2
votes
1answer
398 views

Can I use a SPFX ListView Command Extension to copy files from another library?

I'm looking at using the ListView Command SharePoint Framework Extension on a SharePoint document library. Essentially all it will do is have one command called "New Project". On selecting the ...
2
votes
2answers
389 views

Add SPFx app to a SharePoint site via REST or CSOM

I have 300 Subsites and want to add my custom SPFx Extension to all those subsites. Manually I know how to achieve that. I just go to site contents and add my app. But I want to solve this ...
2
votes
1answer
343 views

SPFx Field Customizer: Customization does not appear if document library is is within a webPart

I finally made my field customizer work in SharePoint online. It provides a URL field with modified link based on other item metadata. It creates a custom view which shows the new column provided by ...
2
votes
1answer
661 views

Office UI Fabric React Message Bar Icon not displaying

I have written a SPFX Application Customizer. The purpose of the customizer is to read in the current page list ID and Site Url. It then passes the information through to the React Components. I ...
2
votes
1answer
3k views

Failed to execute 'json' on 'Response': body stream is locked

I am following this article and get the following error in the console.log Uncaught (in promise) TypeError: Failed to execute 'json' on 'Response': body stream is locked at e.json (sp-pages-...
2
votes
2answers
4k 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 ...
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 ...
2
votes
0answers
185 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 ...
2
votes
1answer
38 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 ...
2
votes
1answer
133 views

SharePoint Framework Extension : Custom Action not activated on site even after successful deployment in AppCatlog

[Screen Shot for the App Catlog ] Hello everyone, I deployed a SharePoint Framework Extension in the App Catalog for my office 365 CDN. Although in the App Catalog it shows successfully deployed, ...
2
votes
1answer
197 views

SPFx extension unrelated ApplicationCustomizerContext type tsc error

I have encountered dificulties using the ApplicationCustomizerContext type and the TypesSript 1) I have created a spfx application customizer 2) I have added in the application customizer main ts ...
2
votes
0answers
483 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 ...
2
votes
1answer
480 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 ...
2
votes
1answer
295 views

SPFx Extension doesn't reload after site search

I have an application customizer extension loading content into the Top Place Holder. When performing a "More Results" site search the page slides over to a search detail screen. When I exit the ...
2
votes
0answers
327 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 ...
1
vote
3answers
650 views

SPFx Deployment - Failing Gulp package-solution — ship

Update: I was aiming for extenal CDN and I uploaded the artifacts successfully after setting "includeClientSideAssets": false. Still even after adding my app in app Catalog with no error, adding the ...
1
vote
1answer
305 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
1answer
846 views

bootstrap menu dropdown not working with SPFX -extensions

I have installed jquery and bootstrap to my spfx projects via npm. The menu loads well but it seems i'm having issues with bootstrap js because when i click on the menu with dropdown(see screenshot ...
1
vote
1answer
168 views

SPFX apply styles before page renders

I am working on modifying modern site pages, more specific the top banner image in the title area. We want to set a max-width and center the background image. The CSS part I have figured out. The ...
1
vote
1answer
503 views

SPFX Extension ListView - nothing happens after “loading debug scripts”

I've build the demo listview extension through yo @microsoft/sharepoint... after trusting the dev-cert and gulp serve I received Do you want allow debug scripts after confirming with yes... ...
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 ...
1
vote
1answer
44 views

Use custom Feature Icon for SPFx

Is there a way to use a custom icon for SharePoint Framework features? When we navigate to the Site Settings, it would be nice to see our branded icon instead of the default one. Part of thepackage-...
1
vote
1answer
940 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 ...