Stack Exchange Network

Stack Exchange network consists of 174 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]

General technical questions about the SharePoint Framework client-side development model.

0
votes
1answer
253 views

Where is the “Service Principal Permissions Management Page”?

I'm prototyping a new web part using MSGraphClient and the new webApiPermissionRequests section in the package-solution.json. When deploying the SharePoint Framework Client Side solution to the app ...
1
vote
1answer
110 views

How to find a list or log of all site collections with SPFX extension deployed?

We deployed a spfx extension (Add-PnPCustomAction Location "ClientSideExtension.ApplicationCustomizer" ) to multiple site collections manually, is there a way to use powershell to pull extensions and ...
1
vote
1answer
144 views

SPFx get all sites were user has permissions

is there a way to get all site collections and subsites where the current user has access to? I would like to build a web part in SPFx and in React. Any suggestions are welcome. Thank you.
0
votes
0answers
43 views

Getting OneDrive API access from webpart

I've been trying for hours to access the REST API within OneDrive for Business from a webpart (in SPO), but without any luck. (Even with JSOM I'm getting the same result). So, I really thought this ...
0
votes
0answers
16 views

SPFX - Export html to word with react template

I want to export html to word, how to do this with SharePoint Framework with React-template??
2
votes
1answer
175 views

How to add items to SPO list synchronously in spfx webparts?

I have twelve items that need to be added to a list on button click. I am using the sp-pnp-js library to add items. But the function adds items to the list asynchronously. I have tried many ways. ...
0
votes
1answer
47 views

SharePoint Framework without command line

Is it possible to build SharePoint Framework Web Parts without using NodeJS, Yeoman, gulp?
1
vote
1answer
64 views

How to create site template with modern capabilities in SharePoint

I want to create a site template (lets say leave management system) with newly introduced "Site Design". With site design we can create lists, libraries with some set of columns, installing add-in etc....
0
votes
0answers
561 views

Local gulp not found

I am new to SpFx and this might be very much basic question. I have followed instruction mentioned in below page and when I ran "gulp serve" command I got an error which says "Local gulp not found" ...
0
votes
1answer
170 views

Handlebars with spfx, Module not found

I am trying to use handlebars in a client webpart using these posts: https://n8d.at/blog/how-to-use-handlebars-in-sharepoint-framework-projects-spfx/ https://n8d.at/blog/first-handlebars-web-part-in-...
0
votes
0answers
24 views

Branding - How to remove control field of file viewer?

how do I remove the control field of the file viewer? I would like to show an Excel chart and remove the field so no one can change the file later or just get to the file. I have tried to create SPFx ...
0
votes
1answer
375 views

Add OnClick Event to SPFX Html - No Framework

I have an SPFX Web Part (No Framework) and would like to add an onClick event to my which will call my function swap(). Code: export default class ExpandableIFrameWebPart extends ...
1
vote
1answer
289 views

Is it possible to open modern item edit form panel from custom SPFx webpart?

Is it possible to open EditForm panel from my SPFx webpart? Something like in list view, if an item is selected, side panel appears with read-only properties and a button "edit all" enables user to ...
0
votes
0answers
55 views

SPFx solution is giving error while cleaning the solution

I have created a SharePoint extension with SPFx framework. initially I ran the solution and it is working fine. But in second run I want to clean the solution. So I executed gulp clean command, but it ...
0
votes
1answer
47 views

How to set the command buttons on ECB menu for multiple List templates in SharePoint newlook using SPFX

I have created spfx addin which will displays the command text on the SharePoint custom list. But i want that it should be displays in all the different SharePoint list templates for e.g Document ...
3
votes
1answer
767 views

Can I use Fabric React in SharePoint 2013 without SPFX?

I want to use Fabric React JS in SharePoint 2013 Environment without SPFx. Is it Possible to use and deploy? Code: import * as React from 'react'; import { CommandBar, ICommandBarProps } from '...
3
votes
2answers
213 views

Load SPFX webparts only after application customizer init method is completed ?

I have some webparts who have dependency of data which is obtained from application customizer. Is it possible to load webparts after application customizer
1
vote
0answers
142 views

Creating MS Planner Plan using Graph fails (403 error)

I am trying to create an MS Planner Plan, using a Post call to MS Graph, as described under https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/planner_post_plans The sequence I ...
0
votes
1answer
144 views

New option could not be placed in ECB menu using SPFX after project deployed and add-in is installed on the site!

I have created one spfx project to place the new option(custom option) in the Edit Control Block(ECB) menu for modern SharePoint site CustomList and it also works fine when i'm testing it on the ...
1
vote
1answer
639 views

SPFx version in SharePoint 2019 On Premise

Anyone knows which version om SPFx will be available in SharePoint Server 2019 on premise?
0
votes
0answers
54 views

SPFx on a Team Site Homepage Cannot Get Taxonomy Data

I have an SPFx webpart and an SPFx extensions that getting data from Taxonomy Term Store. Both of them are working well on all pages (Site Content page, Library page, Site page, etc.) except on a ...
2
votes
2answers
457 views

SPFX - After import babel-polyfill in my webPart(IE Issues)

I use react-table which does not work in a Internet Explorer 11 and I need to install babel-polyfill into my project(web pack); This is issue in github I follow this steps: 1) npm install --save ...
2
votes
0answers
153 views

Webpart built using latest spfx version not working on the classic site

I have built an angular 1.x webpart application using the spfx 1.4 version. The webpart works in the modern sites pages but is not working on the classic site pages and I am getting the following ...
1
vote
1answer
313 views

How to access properties that I have created dynamically?

In the thinking of rebuilding Highlighted content properties, I have created button that add fields in the property pane but now I would like to know how to store the value of these fields and how to ...
0
votes
1answer
84 views

Return only one item from the list

I'm trying to display checkbox of some of the popular links but I face this problem. I can't return more than one item (first one). Any Ideas how to display all of them (5). private getItems(){ ...
1
vote
2answers
75 views

open excel file from spfx onclick

I'm working on a spfx app in reactjs and need to open an excel file. Does anyone know the best way to do this? now i'm using window.open(d.ServerRelativeUrl, '_blank'); but this downloads the file ...
1
vote
1answer
128 views

Which People Picker property is being used to update SharePoint User/Group column

I am trying to update the value of a Person / Group column, based on an input I am receiving from Office UI Fabric People Picker, but seem unable to do so. As per my research the property I should ...
1
vote
1answer
340 views

500 Internal Server Error Search REST API

I am trying to call search REST apis from an spfx webpart, but I am getting this: GET http://servername/_api/search/query?querytext=%27*%27 My code looks like this: let query = `${this.context....
1
vote
2answers
1k views

Local gulp not found when executing gulp serve

I have downloaded the spfx samples from github and I am running into this problem when I execute gulp serve. λ gulp serve [12:39:37] Local gulp not found in C:\react-todo-basic [12:39:37] Try running:...
1
vote
0answers
88 views

Provision List using SharePoint Framework on SP 2016 on-premise

I followed this article and I was able to provision List in SharePoint online using below link: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp-assets-from-...
3
votes
1answer
520 views

SPFX Gulp Serve for a wepart is not opening workbench

I'm trying to add a webpart through SPFX here but when i write Gulp Serve it's not loading the workbench.aspx. Instead, it's trying to load a contoso.sharepoint page and the page is not opening. Any ...
0
votes
1answer
279 views

Apply theme in SharePoint Online using REST api or PNP JS

I am looking for a solution to apply existing theme in SharePoint Modern Site using code.
1
vote
0answers
456 views

Using SP-PNP-JS to get data from custom content type fields with React

I'm currently making News Listing Web Part, where News are made as custom content type. I managed to get the basic fields like id, title, but others are really bothering me. The API fetches all the ...
1
vote
1answer
464 views

how to save user to people and group field using SPFx?

I am using react people picker from github and I would like to save the users to a sharepoint list. Can someone help with this issue? How do I save the users in a field called Persons? 'Persons' : ${...
1
vote
2answers
720 views

How can I use a Property Pane Button to dynamically add or delete fields in the property pane?

I'm currently working on my own webpart and I'm looking for a way to dynamically add or delete fields in the property pane exactly as it is in the highlighted content webpart. I don't even know how to ...
1
vote
1answer
137 views

Is there any way to have a static custom made SPFx web-part in a page-layout template you have created in Design manager (Sharepoint Online)?

I have a problem! I'm trying to put a static custom made SPFx web-part in a page-layout template I have created in Design Manager on Sharepoint Online. I have tried reading up on it online, but can't ...
1
vote
0answers
46 views

Can I distribute SharePoint Framework extension with existing SharePoint Provider-Hosted Add-in?

I've got new SharePoint Framework extension. Is it possible to distribute it with existing SharePoint Provider-Hosted Add-in? Or i need distribute it as new *.sppkg which client need upload to ...
1
vote
1answer
108 views

How to use Highlighted content property pane in my own webpart?

I'm currently developping my own webpart using Sharepoint Framework. In my webpart property pane I would like to use the exacte same groups as in the "Highlighted content" webparts ( Source and Filter ...
0
votes
2answers
240 views

SPO: when a document is added in library, then create an item in a different list

My senario is like this: when a user uploads a document in a document library in SPO, then a new item is created in another list with some information from the document which was uploaded. On ...
0
votes
1answer
60 views

How to analyze SPFx bundle content?

I know there is webpack-bundle-size-analyzer for visualizing and analyzing bundle sizes with webpack projects but how do I integrate it (or something similar) to SPFx web part or SPFx extension ...
0
votes
2answers
234 views

Get values in from Get Request promies in SPFX

So I'm trying to get value from my result sources by using a GET request but I'm having trouble iterating to the items as they are under: "PrimaryQueryResult.RelevantResults.Table.Rows" And I don't ...
1
vote
2answers
285 views

SharePoint Framework - Provision Lookup fields

I am using SharePoint Framework to provision list and libraries according to the below article: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp-assets-from-...
1
vote
0answers
179 views

Cannot add multiple items in list where using pnp batching

I use "sp-pnp-js": "^3.0.4" Where i trying to create batch for - add multiple items into a list for SharePoint On-Premise . This is my code: let list = pnp.sp.web.lists.getByTitle("MyWayBills"); let ...
0
votes
2answers
254 views

client webpart multiline displays as one line only

I am trying to create a multiple line webpart property using this code: PropertyPaneTextField('test', { label: 'Multi-line Text Field', multiline: true ...
3
votes
1answer
492 views

Display a SPFx web part within a popup on a modern page

I am looking for a way to display an SPFx web part within a pop-window in a way, similar to using the modal window ( as descrbed here: https://www.ericgregorich.com/blog/2013/12/30/open-a-page-in-a-...
0
votes
1answer
76 views

SPFX Webpart stalls Chrome?

I have the below code being used in a SPFX webpart that I created which displays Social Media icons and a company name. Everything works fine, but when using Chrome if the webpart attempts to load ...
0
votes
0answers
160 views

SPFx Application Customizer not executing in dialog window

I have built my first SPFx Application Customizer to execute some JavaScript in the sharing dialog window on a site collection modern page. It only adds text to a text box: Unfortunately, this code ...
0
votes
1answer
568 views

gulp package-solution --ship not building sppkg file

A Spfx webpart was made , it was build by using gulp bundle --ship command with no error then gulp package-solution --ship was entered in cmd to get sppkg file but 3 errors came Error - Error: The ...
0
votes
1answer
77 views

How to get SPFx webpart code working in document library?

I created my first SPFx webpart. It's a very simple one to execute some javascript, similar to what the old script editor webpart would have done. It acts on the 'share' button you would find in the ...
1
vote
1answer
45 views

How sure Microsoft will replace traditional addin dev method with SPfx?

How sure Microsoft will replace traditional addin dev method with SPfx? Where we can get the roadmap of SPfx?