Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2answers
35 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
11 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
20 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
24 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
39 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
22 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
42 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
46 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
58 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
15 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
29 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
41 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
29 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
38 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
29 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
13 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
55 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
46 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
50 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
28 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
150 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
46 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
98 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
186 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
52 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
2answers
317 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
158 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
230 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
66 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
57 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
275 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
68 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
52 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
233 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
67 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....
0
votes
0answers
83 views

Trying to get a File from OneDrive as PDF causes CORS error on redirect

I'm trying to get the content of a file as a pdf from Onedrive, however when getting the File via MSGraphClient, it just returns an error in the browser. MSGraphClient call:client.api(`/me/drive/...
0
votes
0answers
17 views

SPFX - PNP Get Termset that is not available for tagging

I have a spfx extension where I need to get terms from a TermSet which is not available for tagging. I am trying to use the terms for custom Footer Navigation Links. Currently I am using PNP JS to ...
1
vote
0answers
38 views

SPFx extensions will work in SharePoint mobile app?

Platform: SharePoint mobile app This question may sounds silly but need a definite answer. I have created multiple SPFx web parts and added them to pages. These are working fine, when I am trying to ...
0
votes
0answers
61 views

Breadcrumb Navigation in SharePoint Online for multiple Modern communication site & Team site using spfx code

I am trying to create breadcrumb navigation for communication site in SharePoint online using SPFX, But i have multiple communication site, how can we make breadcrumb navigation for different ...
0
votes
0answers
613 views

Show Modal dialog in full page SPFx

I have created a web-part which search the images from library and shows the result. when I click on image it should show in the popup as preview however it shows withing the iframe only instead of ...
0
votes
0answers
26 views

Extend Document Information Panel (DIP) with Data from API

The document information panel in SharePoint Online modern view Document Library shows the properties configured in the Site Content Type as well as general sharing or modification information from ...
1
vote
1answer
380 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
0
votes
0answers
8 views

Sharepoint Online Custom App Extension - Create word document based on content type

I'm trying to create a App Extension in Sharepoint Online that creates a new document based on content type. I know that I can create a file using Rest API, I'm just having a difficult time ...
0
votes
1answer
345 views

How to inject custom CSS in Modern Site Pages using SPFx Extensions

I would like to inject Custom css in modern site pages. Here i need to change all the fonts on the modern site and i would like to achieve this via App Customizer with SPFx Extensions. Any tips Or ...
1
vote
1answer
178 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:...
1
vote
1answer
46 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-...