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
0
votes
0answers
9 views

SPFx “Command Set” that displays a dialog box or panel containing a “people picker” control

I'm new to working with SPFx extensions. Requirement is create a SPFx "Command Set", that on click displays some sort of dialog box or panel containing a "people picker" control within it. I've ...
0
votes
0answers
14 views

we have requirement to show a popup at the bottom of every page in the sharepoint modern site. how to proceed with development

we need to add a popup at the bottom of all pages in our sharepoint modern site, is it advisable to go about using "Application Extension" customizer SPFX for development we are not sure of whether ...
1
vote
0answers
23 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
22 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
65 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 ...
2
votes
0answers
17 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 ...
1
vote
1answer
26 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. ...
0
votes
2answers
30 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
49 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
42 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 ...
0
votes
0answers
15 views

Share Azure Application Insights instance between web parts

How to share Application Insights instance between web parts? The idea is to have a single instance of preconfigured Azure Application Insights instance shared between a bunch of web parts. Baseline ...
0
votes
1answer
168 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 ...
1
vote
2answers
83 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
35 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
80 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
51 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
101 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
57 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
39 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
226 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
18 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
50 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
28 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
147 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
20 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
63 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
27 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
172 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
36 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
98 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
321 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="...
2
votes
1answer
202 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
35 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
49 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
64 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
69 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
34 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
59 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
35 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
18 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
83 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
95 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
53 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
49 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
323 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
62 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
149 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 ...