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.

7
votes
0answers
136 views

How do I retrieve the SharePoint Modern site's classification property via search REST APIs?

I am creating a rollup of Modern team and communication sites that are provisioned in my tenant by creating one SPFx webpart which retrieves the site's title, URL, logo and some other properties using ...
7
votes
0answers
852 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
164 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
135 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
322 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
172 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 ...
5
votes
0answers
223 views

SPOnline, How to Batch RELATED REST calls (and increase performance)

Doing nothing fancy, just your normal Intranet Front-Page Got two WebComponents that display a News Carousel and Summary List <news extract="newsheadlines" display="carousel"> <news ...
4
votes
0answers
222 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
40 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
789 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
109 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
214 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
252 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
283 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
468 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
284 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
184 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
166 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
72 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
236 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
69 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
521 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
150 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
24 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
27 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
20 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
65 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
232 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
77 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
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 ...
2
votes
0answers
198 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
221 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
173 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
216 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
118 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
262 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
63 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
157 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
154 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
28 views

Why can't PowerApps see my Custom SharePoint Lists?

I've been working on a PowerApp which uses SharePoint Lists to store its data. When I manually create the lists within SharePoint, I can see these when adding the Data Source in PowerApps - however, ...
1
vote
0answers
15 views

Alignment wrong on a SPFX web part

I am newbie on SPFX with react but I have created this : but I need to align the left hand label with all the command buttons and get the background colour the same, the id label is a little bit ...
1
vote
0answers
19 views

SPFX Angular Element with UI-Router not displaying data

Iam testing Angular Element with SharePoint Framework (SPFX) Webpart, as Andrew Conell has described in his Blog Every thing is working as asspected, i have added UI-Router in webpart just for ...
1
vote
0answers
65 views

SPFx web part is not loading in IE 11

I have a SPFx web part with Knockout framework. Its developed for SharePoint on premises (V1.1.0). Deployed all the Assets in the SharePoint library. Application is working fine in Chrome. But in IE, ...
1
vote
0answers
50 views

Sharepoint ribbon and navbar font color not working when applying theme in Sharepoint Online

With the following script i set a theme in a sitecollection Connect-PnPOnline -Url https://mySP.sharepoint.com/sites/test2 -Credentials $script:psCredentials Set-PnPTheme -FontSchemeUrl _catalogs/...
1
vote
0answers
41 views

DetailsList component row rendering issue

There is a DetailsList component inside spfx webpart, which loads all the documents/files using PnP. There is a office-ui-fabric-react check out button outside DetailsList component. When I select ...
1
vote
0answers
36 views

Custom Action on Command Bar on every page

Is there any way to create a custom action in the command bar on every modern page? Not just in a List or in a Library?
1
vote
0answers
26 views

Hide/Remove Item Content Type from a SP List in SPFx

I am using SPFx webpart on SP2016 and able to create a list with custom content type,below is code sample. But I am not able to get any end point to remove default Item content Type. I want my custom ...
1
vote
0answers
41 views

Peoplepicker get all users in tenant

How can I get all of the users in my tenant? I get just the users in a group. This is my code: private _getPeoplePickerItems(items: any[]) { console.log('Items:', items); } public render(): ...
1
vote
0answers
62 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 ...