Stack Exchange Network

Stack Exchange network consists of 175 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.

2
votes
2answers
38 views

SPFX and pnp/sp : How to get all sites

I am here today to ask you : how do you retrieve all sites on your tenant by using Pnp (formerly known as pnp-js) ? Or even using CSOM. I am trying to create a webpart where, in the PropertyPane, the ...
0
votes
1answer
15 views

Problem adding a Site Script and Site Design at hub

We are trying to create a site design with SharePoint document library with folders and sub folders along with custom permissions. I know how to create a document library but not sure how can i create ...
1
vote
2answers
35 views

Get current user's user group in SPFx WebPart

How do I get the current user's groups which he is a part of without @pnp/sp js framework in SPFx ?
1
vote
1answer
15 views

Shared tenant different header

AS-IS: There is a group of companies, every company (exclude one) have the same brand (same colors, names, ...), but this one company (our) have different brand (e.g. wecare, with different colors, .....
2
votes
1answer
15 views

“Save for later” for articles and publishing pages, where does it save?

I'm planning to make a custom web part that using the users articles/pages that they have "saved for later". However, I have no clue to WHERE to get this information, or where its stored. The "save ...
0
votes
1answer
11 views

Add column names dynamically to `select` method in SP PnP JS

In the select method of SP PnP JS how can I add column names dynamically? For e.g. can the below code sp.web.lists.getByTitle("My List").items.select("Col1", "Col2"); be written something like this ...
0
votes
0answers
17 views

Suggest me the best intranet portal provider using SPFx [closed]

We are planning to launch an intranet for improved collaboration in 2 months. So, please suggest me the best provider.
0
votes
0answers
11 views

How to doCRUD Operations using React and PnP-JS Core on sharepoint lists with SharePoint FrameWork (SharePoint 2016) [closed]

I would like to create a webpart(Form) where user can feed the input and those data i have to save it in sharepoint list. I want to perform CRUD operation using React Framework with pnp.js in ...
3
votes
1answer
29 views

Creating component in SPFx webpart from command line

Is there any way to generate component in React from command line (similar to Angular's ng generate)?
0
votes
0answers
8 views
1
vote
1answer
20 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-...
1
vote
0answers
13 views

“Likescount” and “CommentCount” returns null from publishing pages

I have a search function that connects to "LikesCount" and "CommentCount"properties (social bar). Example: let localQuery = SearchQueryBuilder.create('', {TrimDuplicates: false}) ...
5
votes
0answers
136 views

Automatically deploy SPFx app on new site collections in SharePoint 2019

I have SPFx app that contains an Application Customizer. I would like to have this app either a) deployed tenant wide or b) automatically added to a site collection when it is created For a) there ...
0
votes
0answers
17 views

Creating new items in sharepoint list with SPFx

I am building an web part in sharepoin online that render data from a list. All the rendering is working fine, now I want to go to the next level and allow the user create new items direct from the ...
0
votes
0answers
8 views

Best practice to provision assets (e.g. custom lists) alongside a SPFx tenant-wide Web Part?

Microsoft says that it's not possible to provision assets with a Web Part which is deployed tenant-wide (See here) But I need to develop a Web Part which will be available on the SharePoint Online ...
0
votes
1answer
27 views

SPFx web part: wait for fetching data before rendering header

I already asked this question regarding SPFx extensions. But now I have the same problem I had in that question, but for a SPFx Web part. I use the exact same _getUserInformation() method as ...
0
votes
0answers
17 views

Scope SPFx Extension Application Customizer to Site Pages library SharePoint Online

I have wrote a SPFx Extention (SharePoint Online) to inject some css into site and is there any way to scope this out only for pages created from Site Pages library. Currently i have applied the ...
1
vote
0answers
28 views

SharePoint authentication - Web api

Goodnight, I have a site in Sharepoint 2019 with a webpart spfx and I have a site where a web api runs with the business logic. The api has Windows authentication From SharePoint I can connect to ...
0
votes
1answer
13 views

ADFS custom claims with SPFx

Anyone using SPFx on SP 2016 with ADFS custom claims. We seem to have an issue with custom claims. Some claims are working others are not E.g. the list has two roles 1: General role 2. ...
0
votes
0answers
10 views

How to passd acordion a properties in SPFx

I creating acordeon from this article: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/add-jqueryui-accordion-to-web-part But there are two files. I cant pass properties ...
0
votes
1answer
17 views

Get current view on the page

Im trying to get current view on SPFX extension but i dont know the code.. I know we can get the current list by this.context.pageContext.list.title Is ther somethig like this for view??
1
vote
1answer
21 views

How to test PNP using JEST?

Is there any way to mock the context of the webpart since i need it to be able to make a request through pnp ?
0
votes
1answer
30 views

SPFx Extension - modern experience for search results.aspx

I want to create a header in a modern site page. The header will have SharePoint search (similar to communication sites). After clicking on search, we will be landed on results.aspx page. Now in this ...
0
votes
1answer
35 views

Missing SPFX webpart on SP2016 subsites

Missing web part from the add a web part group on sub site pages. I deployed web part to the app catalog and CDN. I’m able to use it on the top level of my website without any issues, but I can’t get ...
0
votes
0answers
15 views

Getting error while installing YOMEN for setting up SPFx development environment

I have installed NODE 8.15.1 on windows. When i am trying to install yomen using the command npm install -g yo I am getting EINTEGRITY error. npm WARN deprecated cross-spawn-async@2.2.5: cross-...
1
vote
2answers
60 views

SPFx Version support for On Premise Server (2019)

We're currently standing up a sharepoint-server environment, migrating from SP 2010. There are a handful of webparts and event handlers that will need to be rewritten to support 2019. I've gone down ...
0
votes
0answers
24 views

Pnp ListView control filter by column

That's it Is possible to filter by columns? OOB the filter looks like a search tool but if I want to filter all items which date has passed then the OOB filter property doesn't help. Best regards ...
0
votes
1answer
36 views

While creating SPFx webpart solution, i am getting the error : EINTEGRITY?

All these packages like Node, NPM, Yomen, Gulp, microsoft/Sharepoint-generator are already installed as mentioned in the help document for creating a new SPFx solution. https://www.sharepointsky.com/...
0
votes
1answer
65 views

SPFx Extension: wait for fetching data before rendering header

I am currently developing a SPFx Extension (Application Customizer). I am relatively new to TypeScript (C# developer) and I can't find my error. I have the following onInit method: @override ...
0
votes
0answers
24 views

SPFx extension samples not showing

I've tried several samples SPFx extensions. All samples have the same outcome when it comes to testing (gulp serve) after following the instructions on the samples page. Most of them just require ...
0
votes
1answer
30 views

When fetching list's items the link of title column is missing

I wrote a spfx web part using sp-pnp-js to fetch items from a list, this is my query to the list: public async getAgreements(): Promise<Agreement[]> { let select = '*'; let Agreements:...
2
votes
1answer
27 views

Multiple Tenants (Production, pre-production, integration, development) recommandations [closed]

I will be developing web parts (SharePoint Framework) that are going to be hosted in SharePoint Online. I can't deploy directly in the production environment. I need to develop in a development ...
0
votes
1answer
34 views

SharePoint Framework: How to build overlapping web parts?

We have two web parts which are supposed to be used together. One can be placed above the other. The upper web part allows a drop down to be opened. The problem: this drop down opens under the lower ...
2
votes
1answer
78 views

How to display the SharePoint “Live Persona Card”?

In our SharePoint Framework web parts we want to show people information just like SharePoint does: When hovering over the name or image of somebody a popup like this should open. Looking at the ...
0
votes
0answers
19 views

Connect custom web part to a library web part

I'm creating a custom web part using SPFx and I'll to connect it to a list. The web part I make shows the details of a product. The library I'll connect contains all manuals of the all the products. I'...
1
vote
1answer
51 views

SharePoint 2019 - Web API

Goodnight, I have a WEB API application with windows authentication, and I have an SPFX application in sharepoint 2019. Everything is on premise. How can I authenticate the api with the current ...
1
vote
0answers
33 views

SPFX Sharepoint 2019

I created an app in spfx on sharepoint online and connect to a app service use AadClient. It's possible to do the same in SharePoint 2019 On Premise and On Premise Api?. Thanks
1
vote
0answers
42 views

SPFX- Lookup column value

I'm retrieving data from a SharePoint list and I'm facing some issues while getting values from lookup column. I was able to successfully pull in the 'Title' column which is a single line of text, but ...
1
vote
1answer
45 views

SPFx webpart with Bing Maps

I have SharePoint 2019, and I am trying to create a webpart that will display Bing Map, I tried this on a react app created using create-react-app, and it works fine. Then I took the code, and added ...
0
votes
0answers
47 views

Embed UNC-Path to printer into SPFX webpart

I just started with the first tutorials watching about SPFX. My final goal would be to have a webpart and a button to connect to a network shared printer. The path locally would be \\server1\printer1 ...
0
votes
1answer
44 views

SharePoint framework unit testing pnp

How can I test with jest a pnp function? How can I mock the webpart context and pnp responses? I'm using spfx webpart, pnp-js-core and jest for unit testing Thanks.
1
vote
0answers
26 views

PictureThumbnailURL managed property returns pixelated roll up image and published image

I have a search function that uses the managed property "PictureThumbnailURL" to return a rollup image and published image. However, these images are very pixelated and low quality. Is there any way ...
0
votes
0answers
21 views

Is it possible to access an on-premise Active Directory authenticated REST-API from SPFx solution running in SharePoint 2019?

I know that we can call Azure AD secured APIs (e.g. Azure Functions, or API Apps running in an Azure App Service) from SPFx solutions running in SharePoint Online, as described in these scenarios: ...
1
vote
0answers
38 views

Error in webpart after upgrading to SharePoint Framework 1.8

I have just upgraded to spfx framework version 1.8. When I try to add the webpart to the page, I get this error Original error: Error loading https://component-id.invalid/f2f8e00f-ef2a-4909-b24a-...
1
vote
0answers
29 views

Web api - Http 302 - SPFX

Good afthernoon I have a project in sharepoint framework and a Web API project with Azure AD authentication. In the API I have a controller with Autorize Attribute. If the WEB API runs in localhost,...
0
votes
1answer
36 views

How do I add custom dropdowns in Command Bar in sharepoint modern UI

I am trying to add some of the previous ribbon functionality in the command bar for modern sharepoint UI and stack all of them in separate dropdowns. Any feasible solution will be really helpful.
1
vote
0answers
44 views

SPFX Webpart with Dropdown don't work on Classic pages

I currently have a spfx web-part which contains a dropdown, when I add it to a classic page and try to use the dropdown when the SharePoint ribbon displays the Format Text tab, the dropdown keeps ...
0
votes
0answers
17 views

How to enable SPFx Extension Listview Commandset only on a specific list

As the title says.. Is it possible to show the command only on a specific list and its views?? Because my extension has operations involving only a specific list..
0
votes
0answers
17 views

How to retrieve all the SharePoint surveys I didn’t answer yet?

How to retrieve all the SharePoint surveys I didn’t answer yet using Rest API?
0
votes
1answer
22 views

Prevent Dialog from closing after pressing OK - SPFX Extension Listview Command

I created a spfx extension that shows a dialog using Dialog.alert(`Are you sure you want to open Quarter ${selectedItem.Quarter} for Period ${selectedItem.Period}?`).then(() => { this....