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
921 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 ...
5
votes
0answers
169 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
154 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
344 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
176 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
265 views

Print Files through SPFx/JS?

I would like to build a button which would send a batch of files to the printer when clicked (It can prompt the user. Doesn't need to go to the printer without approval). The files would exist in a ...
4
votes
0answers
48 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
963 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 ...
4
votes
0answers
114 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
220 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
2k 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
122 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
291 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
314 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
533 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
300 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
213 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
198 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
95 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
262 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
71 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
572 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
157 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

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
60 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
35 views

MS Graph API - Problems on SPO Mobile-App

The Background: I am developing Sharepoint Online Webparts on-demand. Sometimes the functionality of these Webparts include the use of Microsoft's "Graph-API" to access Data regarding Office 365 ...
2
votes
0answers
76 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
37 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
102 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 ...
2
votes
0answers
302 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
90 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
185 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
206 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
262 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
193 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
257 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
129 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
277 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
71 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
170 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
169 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
16 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,...
1
vote
0answers
27 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 ...
1
vote
0answers
30 views

How Can I add a Content Type to a Document Library using SPFx

I have a Content Type for a Document Library that resides in a Content Type Hub. It's available on the team site. Now when a Library is provisioned, I would like this content type to be added. Can ...
1
vote
0answers
85 views

How to use external API in sharepoint online or in SPFX?

I am trying to integrate the Microsoft Translator Text API to a SharePoint online site, and the method that I am using is with sharepoint framework webpart. but when I press the button to do the API ...
1
vote
0answers
46 views

Create a map webpart using Leaflet library in Sharepoint Online

I want to display a map in Sharepoint that takes locations from a list. For this, I'm trying to create a webpart using the Leaflet library (https://leafletjs.com/). The problem is that the map is not ...
1
vote
0answers
25 views

I want to upload the document in SharePoint online document library with content type

My code - sp.web .getFolderByServerRelativeUrl("Student%20Details%20No%20Content%20Type") .files.add(fileContent.name, fileContent, true) .then(f => { f.file.getItem()....
1
vote
0answers
50 views

SPFx Custon Property Pane not opening

I have created one custom SPFx webpart in which I have placed one link (My Links). By clicking on that link, I am getting links from SharePoint list. When user clicks on the link, it opens Property ...
1
vote
0answers
43 views

Local workspace file ('angular.json') could not be found error in SPFX

I am trying to use angular 4 in SharePoint Framework. Basic setup is done but when I try to use angular command ng g service app it throws error Local workspace file ('angular.json') could not be ...
1
vote
0answers
48 views

SharePoint Modern Filter option for list view webpart

I have some lists and libraries in SharePoint Online and all are already converted in modern experience (new experience). I want to add these as list view web part in SharePoint Modern page and ...