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
1
vote
0answers
48 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 ...
0
votes
2answers
87 views

Can I create new extension placeholders?

I've followed this tutorial to create an extension that displays an alert on top of the page: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/using-page-placeholder-with-...
0
votes
1answer
240 views

Error with "Creating new spfx listed view Command set extension" the command does not appear on Edge when debugging

I created a new SPFx listed View command set extension and change the URL in the serve.json file then debug it and got the following error (in the screenshot): the problem here that the same link ...
0
votes
1answer
34 views

How to customize SharePoint main content using SPFX [closed]

I'm using spfx extensions to customize header and footer, but not customize body content or main content of page in sharepoint online.
0
votes
0answers
34 views

Changes in default Property pane using SPFX

Can we change default property pane using SPFX extension ? like hiding or removing @override public onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void { ...
1
vote
1answer
289 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, ...
1
vote
1answer
428 views

SPFX context menu command set extension not showing for picture library

I am developing a ContextMenu command set for sharepoint online for my tenant. I developed the program and tested and from localhost it was working as expected. When I deployed the extension and ...
0
votes
1answer
2k 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 ...
1
vote
1answer
32 views

Add SPFX extension when document is opened in SPO mode

I am looking to add button (highlighted with yellow in the screenshot) in the header when the document is opened in SPO mode. Is it possible through SPFX or any other way in SPO ?
1
vote
1answer
161 views

Application Customizer to hide Save button

I am trying to create the application customizer to hide save and cancel button from Newform.aspx in Modern UI, I tried writing below code but everything getting hide instead of Save button noticed ...
0
votes
1answer
68 views

Extension option Missing in SPFX

i am trying creating extension but not getting extension option only getting webpart
1
vote
0answers
200 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 ...
0
votes
1answer
92 views

Start Manual Sharepoint designer workflow using SPFX

Can we create spfx extension or webpart which can initiate workflow on selected items in document library
0
votes
1answer
184 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 ...
4
votes
1answer
228 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 ...
2
votes
2answers
462 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-...
3
votes
1answer
101 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 ...
0
votes
2answers
2k views

SharePoint 2019 SPFx application customizer - site collection wide automatic deployment

I am looking forward for some help. I developed an application customizer to inject JS and CSS. I am using the "includeClientSideAssets": true to get my stuff within the sppkg. In addition to that ...
2
votes
2answers
131 views

SPFx Extension BaseListViewCommandSet

I created a SPFx BaseListViewCommandSet extension. My component puts the status of all selected rows. The update works well. However, when I want to refresh the page (location.reload ();) at the end ...
3
votes
3answers
8k 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
133 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 ...
3
votes
1answer
522 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 ...
0
votes
1answer
59 views

SPFx Extension - Application customizer - List all components on the page

Is there a way to list/ iterate all OOTB components on the modern SharePoint online site page? Under developer tools I can see an ID 'spoAppComponent' but not able to access/ unmount the same ...
1
vote
1answer
108 views

SPFx Application customizer and hiding list in Modern Site

Is there a way to Hide List view & List settings page for certain user. Idea is make the list inaccessible to through UI and programmatic access and user will only access data via Power App. Below ...
1
vote
0answers
68 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 ...
1
vote
1answer
65 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?...
3
votes
1answer
1k 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 ...
1
vote
1answer
126 views

How to add the new command bar button at the end of the other menu using spfx ? like after flow

How to add the new command bar button at the end of the other menu using SPFx? like after flow. My new button(eviewer) is getting added after export to excel. I want to be added after end of flow. ...
2
votes
2answers
267 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 ...
0
votes
1answer
422 views

REST API Prompting for user credentials

I am attempting to traverse up the site hierarchy tree using the Rest API in SharePoint with SPFx in order to create "legacy-style" breadcrumbs. I am basing my component on the code found here. If ...
1
vote
2answers
293 views

SPFx Command Set tenant-wide deployment

I'm using SPFx version 1.4 for SharePoint Server 2019. I've created a Command Set for document library for global deployment on the whole tenant. Basically, it should work on each document library on ...
2
votes
2answers
11k 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
564 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?
1
vote
1answer
122 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'...
0
votes
1answer
476 views

How to add bootstrap media query add in spfx(jquery) web parts?

We have SharePoint SPFx web part (developed using jQuery). We want to show these web parts responsive in the all devices. Do we need to use bootstrap or any media query?
1
vote
1answer
346 views

check user in group SPFX get Httpclient request 403

I get a 403 error when i try to check if a user is part of group. let props = this.properties; let GroupsArray: string[] = []; if (props.Groups != null && props.Groups.length > 0) { ...
0
votes
1answer
535 views

SPFX Custom CSS and deploy in CDN

I am creating SPFx extension with custom CSS file not SCSS file. My Question is how can I add path in SPComponentLoader.loadCss()? And at the same time how can I upload the file in my "Public Office ...
1
vote
1answer
139 views

SharePoint Framework with Promise in extension

I am trying to render header placeholder, but I am very new to the promise of SPFx. Below line in my code runs before it returns any value. How can I await until it returns a string value? this....
1
vote
0answers
64 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", }, "...
0
votes
1answer
80 views

Save site as template in SharePoint Online Modern Sites

I want to save a SharePoint Online modern site collection as a template with SPFx application extension and want to create a SharePoint Online modern site collection using saved template.
1
vote
1answer
878 views

How to get all items in list view from SPFX ListView Command set onExecute()?

Is it possible to get all (not only selected) rows\items in ListView when ListView Command Set onExecute() method is called? E.g.: @override public onExecute(event: ...
3
votes
1answer
1k 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="...
1
vote
0answers
621 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/sharepoint/"> <...
12
votes
3answers
7k 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 ...
2
votes
1answer
793 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 ...
0
votes
1answer
133 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
1answer
234 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
217 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 ...
2
votes
1answer
62 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
117 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 ...