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
2answers
45 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?
0
votes
1answer
24 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
46 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
27 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
38 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 ...
0
votes
1answer
44 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....
2
votes
0answers
26 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 ...
0
votes
1answer
64 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
0answers
13 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
0answers
15 views

SPFx: Provision Document Library with standard Word Document

I want to deploy a SPFx extension (Commandbar) which generates .docx files out of list items with one click. The extension itself is quite easy, but for deployment reasons (on customers SPOs/on-...
0
votes
1answer
24 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.
0
votes
2answers
58 views

SharePoint framework yo not showing all the options

I am new to SharePoint framework. I am executing yo @microsoft\sharepoint. Providing all the inputs. For the question Which type of component to be created? it is showing only Webpart. It is not ...
0
votes
0answers
13 views

How to change file opening behavior by SPFx ListView Commands Set or SPFx Application Customizer?

Is it possible to change click behavior of SPO for some file types? Which type of extension is better to use to achieve this aim: ListView Commands Set or SPFx Application Customizer ? I need special ...
0
votes
0answers
34 views

Get Hub Site and Assocatied Com Site and Team Site with spfx

I am working on spfx solution with Reactjs v16. I was trying to get a Hub site named "Marketing" and all the hub sites associated with Marketing site including (Comm and Team sites) and render it ...
0
votes
0answers
26 views

How to detect type of SP server in SPFX?

I'm writing SPFX extension that should work on both SP 2019 on-premise and SP Online. But due to bug in SP Online I have to split behavior of extension depend on type of SP server. Is it possible to ...
1
vote
1answer
83 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: ...
0
votes
0answers
27 views

SPFx Extension run only on startpage

I have created a spfx extension that applies styling that I just want to run on the startpage. How can i achieve it? Here is onInit method, i tried it and still applys the styling even when the "...
1
vote
0answers
56 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/"> <...
1
vote
1answer
157 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
1answer
113 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
0answers
16 views

SPFx Command Set on a subset of document libraries

I am working on a scenario where I have multiple document libraries and I would like to enable a Command Set button for custom approval only on a subset of those libraries, so effectively have 2 types ...
0
votes
0answers
34 views

Save Search History with custom search bar in modern page

I need a help in saving the search history for custom search in SharePoint modern page. I have added the Enterprise Custom Search but i am quit lost to enable or add this feature to spfx to save the ...
0
votes
1answer
34 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
0answers
53 views

SPFX List View Command Set Extension Issue

I have couple of issues in my SPFX Command Sets Extension. Actions Buttons are keep adding in toolbar on list item selection. I have added two different Custom Action(with same command Extension, but ...
0
votes
1answer
38 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 ...
2
votes
1answer
23 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
42 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 ...
0
votes
1answer
30 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 ...
0
votes
0answers
14 views

SharePoint extension not loading

I have created a sharepoint extension to load css on site using private cdn. I am able to add it on site using Add-PnpApp. However, when i try to Add-PnpCustomAction on site, it does add on site but ...
4
votes
0answers
63 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 ...
1
vote
1answer
59 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 ...
1
vote
0answers
21 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 ...
2
votes
1answer
52 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 ...
0
votes
0answers
21 views

SPFx Solution has a warning stopping production builds has anyone seen it before?

I have been supporting an SPFx solution and I am required to make a small change however it will no longer build. I have tried pulling the last version back down from our repository but it has the ...
0
votes
0answers
35 views

Spfx extension - Code to run after search bar loaded on page [duplicate]

I am using communication site and adding some html elements below search bar like radio buttons. Normally the search bar takes few seconds to appear on page. I want to use something like onload ...
0
votes
1answer
235 views

SPFX extension placeholder for search bar

I am trying to add some html elements like radio button below my search bar in communication site i.e. to a modern page using spfx extesion. So initially i tried to do it using javascript by just ...
0
votes
0answers
52 views

Sharepoint Online cross site lookup schema.xml for field extension

I try to create a cross site Lookup field extension for Sharepoint Online. The Field extention is working perfectly, as long as both lists are at the same Website but I need it to work cross site. ...
2
votes
0answers
128 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 ...
1
vote
1answer
302 views

Is there a way in SPFx to create custom action in “PersonalAction” group

XML element method is working for classic pages, for modern pages it is not working. Using SPFx list view command set I can create ECB menu for list item level I am unable to find anything for ...
1
vote
0answers
56 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, ...
0
votes
3answers
615 views

SPFX open new list item using modal dialog

The code below opens a new item in Iframe/modal dialog. But when the user saves or closes the modal form i would like it to be closed and not redirected to any other page. Is there any way I can ...
1
vote
1answer
209 views

Associate Field Customizer with existing field using feature framework

According to Field Customizer documentation it is possible to associate it with existing SharePoint field using feature framework. But I am not able to make it work. I am trying to customize the "Name"...
0
votes
1answer
384 views

Unable to Load CSS from the style library using SPFx Extension

I want to load the CSS file from Style Library of the site. I have created the SPFx extension of type Application Customizer. The purpose of the CSS loading is to change the UI of the web parts. I ...
0
votes
1answer
69 views

Can we use column formatter with command set customizer?

Can we use the listview command set extension to change the format of the view or column in SharePoint online? If yes, how? And is there any other way to create a template like feature for this? ...
1
vote
1answer
64 views

Changing the URL of “Name” column in document library

Is there any way to rewrite the URL of "Name" column in a document library's modern view? "Field Customizer" is an option but then I will have to hide/delete "Name" column, which is not a good idea ...
0
votes
2answers
412 views

Display Rich Text in SharePoint Online

I am trying to display the rich text in a list item . I tried using the JSON formating, but it does not seem to have any support for "Enhanced rich text". The txtcontent converts the rich text to ...
0
votes
1answer
90 views

Programmatically Deploy SPFx ListViewCommandSet Tenant Wide

I have a SPFx list view command set which is deployed tenant wide. More details here Is it possible to perform the steps mentioned in the article programmatically. Basically I want to upload the ...
0
votes
1answer
61 views

Q: Set Folder's path according to it's title in a list with SPFx

I am creating a folder inside a List with the following code: TypeScript import {sp} from "@pnp/sp"; const shpList = sp.site.rootWeb.lists.getById(ListId); shpList.items.add( { Title: folderName, ...
1
vote
2answers
334 views

Q: Create list item inside folder with SPFx

I am trying to create an item within a folder in a list. Is there an approach with pnpjs that looks like the following? TypeScript import {sp} from "@pnp/sp"; const shpList = sp.site.rootWeb.lists....
0
votes
2answers
72 views

Q: Create visible folder in list with SPFx

Having the following code in an application extension: TypeScript import {sp} from "@pnp/sp"; /*******************************************************************/ const shpList = sp.site.rootWeb....