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.

8
votes
0answers
1k views

SPFX Provision list with data

I am trying to use the SharePoint Framework to provision a list with some default data, I managed to get this working using the following elements.xml and custom schema.xml. This worked no problem ...
7
votes
0answers
185 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 ...
5
votes
0answers
1k views

Detect navigation change in SPFX Application customizer

I have a SPFX customizer that displays a banner in the topPlaceholder. When the page loads, if it's a list, then it performs a calculation and then displays the banner. When I move from one library ...
5
votes
0answers
173 views

New Communication site Template supports Multilingual Content

we have a requirement to use new Communication Site template and build a web site, but it should be multilingual. Since new Communication site look and feel and responsiveness suit to my client ...
5
votes
0answers
172 views

SPFX Getting Sharepoint Online Modern Page ListItem Icon Programatically

I'm trying to get Modern Page ListItem icon path for some implementation. I understand that for SharePoint OnPrem / Online Classic, it will be located under /_layouts/15/images/<<icon_filename&...
5
votes
0answers
381 views

SPFx Extensions - popup “loading debug scripts” does not appear in a list

I built the application as described in this tutorial The popup appears on the site, but does not appear in the list of this site. Did anyone have a problem of this type? This path works: /sites/...
5
votes
0answers
183 views

Office ui fabric react not working with SharePoint hosted app!

I have created SharePoint hosted app using VS2015, and in that i have used Office ui fabric react components. I have installed it and other packages of React and React-dom using npm, App is ...
4
votes
0answers
51 views

Is it possible to include fields in a sharepoint list directly from elements.xml file?

I am trying to provision a SharePoint 2013 tasks list from a spfx app using the feature framework. I am able to create an out of the box tasks list with the following list definition in my elements....
4
votes
0answers
121 views

Application Customizers no longer working on dev sites

My Application Customizers have stopped working on "Development" site templates on my developer tenancy. I get the following warning in the browser developer tools. Invalid location: Extension....
4
votes
0answers
229 views

What are _spPageContextInfo.fid and _spPageContextInfo.nid in SharePoint 365?

I am getting values as shown below while executing _spPageContextInfo.fid and _spPageContextInfo.nid in the console in my SharePont 365 site but am not getting for what these values are used here. ...
4
votes
0answers
3k views

Updating state with SPFX TextField Component? Office Fabric React

I can't figure out how to pass an event object to the SPFX TextField component. It's only passing the value of the input as a string from what I can see when I console log them out. I would like to ...
3
votes
0answers
296 views

Calling ASP.NET Web API 2 from an SPFx webpart

I am facing an issue with authenticating my SPFx webpart against an Azure AD backed Web API. What I have done so far is Created a ASP.NET WEB API 2 project. Added OWIN and configured CORS and OIDC in ...
3
votes
0answers
147 views

How to create dynamic properties in SPFX

I have a dropdown control showing all document library names. Once the document library is selected, I have to create one one filter for each column and add a control in config pane dynamically. I am ...
3
votes
0answers
325 views

SharePoint Framework error : Resource “jquery” not found in loader configuration of manifest for component

I know that this question has already been there, but am raising it because after trying all blogs issue did not get resolved. Am trying to load non-AMD module having dependency on AMD module. Since ...
3
votes
0answers
345 views

Calling external web api on-premises securely from SharePoint Framework on-premises

I have a SharePoint Framework on-premises solution where I want to call securely an external web api, also on-premises (the same). This means that the logged on user identity should be passed to the ...
3
votes
0answers
567 views

SPFx: Customize field behavior similar to JSLink in classic list forms

We use jslink on the field to customize the UI and behavior of fields on classic SharePoint forms and list views (cascading, colors etc.). How can we make this work in the Sharepoint modern experience ...
3
votes
0answers
313 views

Image URL Redirection to CDN in SPFx Webparts

I am creating a SPFx webpart in which I fetch images from a library and bind them to a carousel. I am doing a GET request using REST API /_api/Web/Lists/getbytitle('ListTile')/Items?$select=Image To ...
3
votes
0answers
232 views

Access the existing List command bar in SPFX command-set project

I am trying to access the List view command bar in commnd-set spfx project but no success. I am trying below code: const compareOneCommand: Command = this.tryGetCommand('COMMAND_1'); if (...
3
votes
0answers
241 views

How do I get to an AzureAD group members from a SharePoint LoginName using the graph?

I am trying to use the graph to find all users in a SharePoint group on O365. The SharePoint Group contains Azure AD groups. The LoginName for one of these Azure AD groups within a SharePoint group ...
3
votes
0answers
110 views

Use npm to reuse react components between web parts

I've been building web parts for a while now and I've found myself copy-pasting some of my spfx react components more often than I'd like. The ideal solution for me here would be to publish the ...
3
votes
0answers
276 views

SPFx Custom Property Pane

I had created a SPFx web part. The web part contains a Property Pane Custom Field, which returns a string. Now, when I hit apply button on property pane, my custom property gets the data and render it ...
3
votes
0answers
73 views

SPFx WebPart and Variations - App is not working

I have developed a SharePoint SPFx App that is using a CDN hosted in SP for the resources. Everything is working fine on normal websites and sites but not on variation sites. So I can install the ...
3
votes
0answers
620 views

SPFx Custom Property Pane save property save

When building a SharePoint Framework web part - How to Save Custom Property Pane value? I have created a multiselect field for Property Pane, but not able to retain the values when refresh the page. ...
3
votes
0answers
163 views

SharePoint Webhooks: SPExperimentalFeatureException

I am getting the below SPExperimentalFeatureException while following the SharePoint Webhooks. The requested operation is part of an experimental feature that is not supported in the current ...
2
votes
0answers
23 views

Integrate Azure Bot with SPFX Extension

I want to call my azure bot from sharepoint online site using spfx extension as shown in the example: https://github.com/SharePoint/sp-dev-fx-extensions/tree/master/samples/react-msal-bot Steps/...
2
votes
0answers
35 views

Error in seting up spfx 1.7 with angular 7

Hi I am setting up a SPFX 1.7 project with Angular 7 using the sample which is done with previous version. https://www.youtube.com/watch?v=_OgEqWtouuU https://winsmarts.com/use-spfx-with-angular-cli-...
2
votes
0answers
73 views

Deploying new version of a SPFX app propagates functionality to web without updating app by user

After deploying a new version of a SPFX WebPart/Extension to an AppCatalog in SharePoint Online the new funcionality gets propagated to instances of the app installed on webs. But the users still have ...
2
votes
0answers
51 views

SPFX and React : Component not rendering correctly because of findDOMNode returns null

I am a new React learner, and I may have a situation with render() and findDOMNode. What I have and what is the wrong behavior : I'm quite new to React so, I may have done lots of mistakes there. I ...
2
votes
0answers
119 views

Office-UI-Fabric Pivot with React Router? Possible or not?

I face real challenge (at least for me) so I decide to ask for some help here. I'm building SPFx app where I'm using Pivot from UI-Fabric and I would like the current user to be able to navigate back ...
2
votes
0answers
44 views

I need to get all properties of taxonomy termstrore. which I already get are “Label”,“WSSId”,“TermGuid” but I need to get Other labels as well

Is there any solution to get other properties for taxonomy termstore. As I remember, I usually used "include" to get all properties which I mentioned in JSOM. But now I need to work by using ...
2
votes
0answers
119 views

Error in Generating HTML Snippet for SPFX Webpart

I have coded a webpart using SPFx framework, and am trying to add the webpart into the page layout to avoid any changes by the users. The site is using Classic Experience, and I have coded the Master ...
2
votes
0answers
376 views

Using Custom JS in SPFX (SharePoint Online Modern Sites)

I have created a footer using custom js which fetches all the terms inside the termstore and displays it in the footer for the page and I have referenced the custom js and css files in the custom ...
2
votes
0answers
110 views

Proxy issue in SharePoint Framework

I am trying to run SPFX project in my office environment. Internet is using proxy to restrict internet access so I am getting below error while running npm command. I have tried to solve it using ...
2
votes
0answers
207 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 ...
2
votes
0answers
610 views

Sharepoint React Framework , office ui fabric css not getting applied on components

This is the current version of office ui fabric referened in my package : I am using sharepoint react framework and have used List component : Code Link : https://github.com/OfficeDev/office-ui-...
2
votes
0answers
214 views

Load js plugin if only jQuery is available in SPFx

I have created 3 SPFx web parts which are fine when I test them individually. But if I keep all of them on the page then issues are coming, because of jQuery loading. All three are using jQuery file. ...
2
votes
0answers
334 views

SPFX Extension not showing when deployed to office 365 (working in debug mode)

trying my luck here about this issue with spfx extension, thank you in advance https://github.com/SharePoint/sp-dev-fx-extensions/issues/63 Sorry in advance if this is against stack overflow rules (...
2
votes
0answers
208 views

Adding a webpart to existing spfx solution via yeoman generates error

When I run the following commands to create a sharepoint framework solution, change directory to the new solution and then add a second web part to the solution... yo @microsoft/sharepoint --...
2
votes
0answers
298 views

SPFX Extension Field Customizer onRenderCell calling base method

Currently i'm implementing field customizer to update document library list item icon. I updated Field XML Schema definition through CSOM. It's working well. But for certain condition, I need to show ...
2
votes
0answers
136 views

SharePoint Framework: How to detect when Knockout ViewModel has been created?

In a SharePoint Framework webpart based on knockout the knockout component and its view model are created asynchronously as they are registered like this: private _registerComponent(tagName: string)...
2
votes
0answers
293 views

Error 4048 when trying to install Yeoman SharePoint generator

After running the following command: npm install -g @microsoft/generator-sharepoint For some reason, it wants to rename "generator-sharepoint-77d8330f" to "generator-sharepoint" and it fails when ...
2
votes
0answers
75 views

SPFx development with Reactide, instead of the SPFx Workbench?

Before I spend more time on this to evaluate how this tools stacks up to the SPFx Workbench.. Question: Is anyone else following, or tried to use Reactide with SPFx? source: https://github.com/...
2
votes
0answers
183 views

Issue with next metadata missing on Rest API Call

I have a Pages Library which has a Managed Metadata Column called Category. I am using REST API to query this list. I need to get the top 13 items and implement "Next" paging. When I am accessing ...
2
votes
0answers
175 views

How to open one EditForm.aspx Page in Classic mode, In a Modern Experience SPOnline env.

I do not want to switch the whole SiteCollection back to Classic. Users are very happy with the Modern Experience I want to open the EditForm in Classic mode only once.. so my UserCustomAction ...
1
vote
0answers
72 views

(Problem)SPFx rendering items from RSS after selecting number of items you want to display with slider

I am currently building an RSS webpart in SPFx using React as a framework. Now I am in the stage that I want the user to be able to select how many news items he/she want to see with a slider (taken ...
1
vote
0answers
15 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 ...
1
vote
0answers
20 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}) ...
1
vote
0answers
52 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 ...
1
vote
0answers
50 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
113 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 ...