Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
6 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:...
5
votes
1answer
131 views
+100

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 ...
1
vote
1answer
20 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-...
0
votes
0answers
17 views

Scope SPFx Extension Application Customizer to Site Pages library SharePoint Online

I have wrote a SPFx Extention (SharePoint Online) to inject some css into site and is there any way to scope this out only for pages created from Site Pages library. Currently i have applied the ...
0
votes
0answers
10 views

Why is there an error for an SPFX ListViewExtender

Have anything changed within O365 for ListViewExtenders (SPFX) - I'm getting an error - on a brand new project This error is shown in the console : Uncaught Error: There is no operation handler ...
0
votes
1answer
30 views

SPFx Extension - modern experience for search results.aspx

I want to create a header in a modern site page. The header will have SharePoint search (similar to communication sites). After clicking on search, we will be landed on results.aspx page. Now in this ...
1
vote
0answers
17 views

Exclude a few sites from tenant-wide spfx extension deployment

What's the best way to prevent/exclude a few modern sites from getting a tenant-wide extension deployment like a global footer?
1
vote
0answers
38 views

Error in webpart after upgrading to SharePoint Framework 1.8

I have just upgraded to spfx framework version 1.8. When I try to add the webpart to the page, I get this error Original error: Error loading https://component-id.invalid/f2f8e00f-ef2a-4909-b24a-...
0
votes
1answer
35 views

How do I add custom dropdowns in Command Bar in sharepoint modern UI

I am trying to add some of the previous ribbon functionality in the command bar for modern sharepoint UI and stack all of them in separate dropdowns. Any feasible solution will be really helpful.
1
vote
2answers
29 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....
0
votes
0answers
15 views

What parameters need to be listed for HTTP Request

I need assistance to determine what the 'Request Body JSON Schema' should be, to allow Flow to trigger via HTTP request to pass the List Item ID as a query string parameter. I am working on a list ...
0
votes
0answers
17 views

How to enable SPFx Extension Listview Commandset only on a specific list

As the title says.. Is it possible to show the command only on a specific list and its views?? Because my extension has operations involving only a specific list..
1
vote
0answers
19 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 ...
0
votes
1answer
34 views

Loading external JS sources prior to any other scripts in SharePoint Framework

Deploping on SharePoint Modern, I am using this React Content Query Web Part and added two of them on the page. One of them will need slick.js and another one is using masonry.js, both of which ...
5
votes
2answers
788 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 ...
11
votes
3answers
2k 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 ...
1
vote
1answer
15 views

Add a new button ribon with csom

I'm trying to add a new button in my sharepoint 2013 server via csom because in a few months I'll pass to project online and wsp aren't support anymore by project online So I found this guide on the ...
0
votes
0answers
55 views

Can a ListView Command Set be active for a certain list only?

I want to create a command set that grabs emails, I don't want this to show up on all lists. Can a command set be in some configurable way be set on a specific list? It is either this or having it ...
0
votes
1answer
78 views

Retrieve column value (page property) by site ID from Site Pages list

apologies for the likely silly question, but I've been unable to find an answer that makes sense, or at least one that marries up with my understanding of the SP terminology. I'm trying to get access ...
1
vote
1answer
52 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 ...
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 ...
1
vote
0answers
94 views

SharePoint Modern Filter option for list view webpart

I have some lists and libraries in SharePoint Online and all are already converted in modern experience (new experience). I want to add these as list view web part in SharePoint Modern page and ...
2
votes
1answer
1k 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-...
0
votes
1answer
57 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 ...
0
votes
1answer
91 views

A service principal with the name User Details Custom API for SPFx

I am consuming an Azure API app in a SharePoint Online react app. I am following this article. But when I try to approve the app permissions on the API management page (SharePoint admin centre). I ...
3
votes
1answer
362 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
29 views

Sharepoint SPFx active toggle in list view

I'm new with SharePoint Framework and I want to achieve something like this: Github - React Field Toggle This solution is for SPFx v1.3 and in my environment (SharePoint Online) it's not working even ...
0
votes
1answer
70 views

Spfx breadcrumb not working on modern team site

I am using the following breadcrum sample. I have deployed the latter to app catalog and it works fine in a developer site with modern pages/library but it doesn't work in a modern team site.
1
vote
1answer
235 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 ...
0
votes
1answer
229 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? "...
5
votes
1answer
145 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 ...
0
votes
1answer
108 views

How to get list of spfx extensions available for my SharePoint online tenant

Very happy new year to all. As i am working on modern experience. I was going through the Microsoft road map. there i found that they have rolling out some of new extensions. How can i check that is ...
0
votes
0answers
82 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 ...
1
vote
1answer
49 views

SPFX how to add a readonly field to a Content Type [closed]

I need to create a List with an asset package with spfx. The list must contains 10 Columns that can not be edited by users but will be modified by buttons added with an spfx extension. How can I do ...
2
votes
1answer
23 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 ...
0
votes
1answer
40 views

How to implement google translate in SPFx extension in SharePoint Online?

We were using google translate API in our SharePoint Online classic view site. Now we are moving to modern site. I need to implement same in SPFx extension. Below is code to that is working in ...
3
votes
1answer
220 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 ...
1
vote
1answer
32 views

Terminate batch job in SPFx

In spfx, If we press 'ctrl+c' during any continue process then display a message 'Terminate batch job (Y/N)?' you press Y for yes and N fro No, but both the case y and N terminate the batch job. so it ...
2
votes
1answer
100 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, ...
1
vote
3answers
376 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
2answers
221 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 ...
0
votes
2answers
200 views

Error when using MSGraphClient

Today I tested some of my apps created with SharePoint framework and they started to show a errors in the webparts and extensions that use MSGraphClient. Before it was working normally. I am ...
0
votes
1answer
59 views

How to make SharePoint Extension available for external users?

I need my SharePoint extension (.sppkg) that runs in New Experience mode to be available for external SharePoint users. Is it possible to achieve?
0
votes
1answer
57 views

How to store setting for SharePoint Extension (sppkg)?

I need to store site setting for new type of SharePoint extensions (spfx, .sppkg file). Are there any special approach to do this? Here is what I need to store: Store settings that user can not see ...
0
votes
1answer
246 views

Issue with ListView Command set custom action | spfx

I have implemented a simple listview command set and added one button which is enabled when one item in a list is selected ( Similar to Command_1 example Here) While its working as expected on my ...
2
votes
1answer
379 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 ...
0
votes
3answers
1k views

Custom Form for Modern UI List item/Content Type

Is there a way to customize the layout of the list items/content types in Modern UI ? Right now whenever we click to the title it will open the right panel which I couldn't find a way to customize it. ...
0
votes
1answer
128 views

How to know if 'ms-CommandBar' component has been loaded using SPFX extensions

I would like to hide the above commandbar in all pages using javascript in spfx extensions(application customizer). I have tried the below code @override public onInit(): Promise<void> { ...
0
votes
1answer
213 views

How to load the external CSS first in SPFX Extension before the web parts renders

We are loading a custom CSS using SPComponentLoader in SPFX Extension. We are using those styles in other web parts. But while the page loads the ui is not coming properly as the Custom CSS loads ...
1
vote
1answer
20 views

What is the timeline to fix the known bug with list and library extension support in the classic experience?

I have a working SharePoint Framework extension but I need it to work across 200 classic sites that use the modern library experience. However, according to the overview for extensions: There is ...