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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

0
votes
2answers
29 views

SPFX Angular *ngFor not working with routing

Iam using Angular project from Sahil Malik's blog Use SPFx with Angular and Angular CLI as a startup solution/project.... And i implemented "@angular/router" for routing with some test pages. Just ...
0
votes
0answers
17 views

Jquery plugin remodal in SPFX Webpart

Hello as found on the internet I added a jquery plugin to manage modal box in my sharepoint Framework webpart. It worked perfectly for the first day but when I came back the day after it looks like ...
0
votes
1answer
25 views

How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?

I have create one azure function to call 3rd party API and used application ID in SPFx webpart but when on 'gulp serve' it shows error. I have tried in both team site as well as developer site. I am ...
0
votes
1answer
42 views

can we check if the same package (npm package) loaded twice on the sharepoint modern page?

we are using private module (equivalent to dll) for logging the issue in SPFx to list. i am not sure if the private module is been downloaded multiple time or one time on the modern page. we are ...
0
votes
1answer
24 views

SPFx - PnP Js : Setting value of a custom user profile property

I am working on building a webpart using SPFx. I need to access userprofile service to set value to a custom user profile property. I am using PnP Js to achieve this. I found here that there is a ...
-4
votes
1answer
37 views

Is there any possibilities that getting documents that's been shared with the current user!

Any search API that shows shared with me documents been used with SPFX
0
votes
1answer
42 views

SharePoint Framework ( SPFx) is it possible to create custom HTML page

Just started learning SPFx, so had many queries. First of all In SharePoint Framework ( SPFx) is it possible to create custom HTML page and make that as default landing page for add in. So that we ...
0
votes
2answers
22 views

Add webparts to an existing spfx solution after deployment

I added a new webpart to a spfx solution after it has been deployed to SP online. I repackaged the solution, reuploaded the package to the app catalog and I do not see the newly added webpart in the "...
0
votes
0answers
30 views

Load fonts in sharepoint framework

I have the following code and need to know how to load an external font source such as the woff source build.configureWebpack.mergeConfig({ additionalConfiguration: (generatedConfiguration) => ...
1
vote
1answer
43 views

How to get App Catalog site URL using JavaScript?

Is there a way to programmatically get the App Catalog site URL in a SharePoint Framework (SPFx) Web Part? I'd like to read/set the SharePoint Tenant Properties in my Web Part. However, we need to ...
3
votes
2answers
62 views

How to combine two SPFx web parts?

We have two separate SPFx web parts (call them A and B), and you can add A and/or B to same SharePoint Online site. Now there is a need to create web part C that combines both A and B into single web ...
2
votes
1answer
26 views

Restrict audience for SharePoint Framework Solutions

Is it possible to restrict the audience for SharePoint Framework solutions? By individual sites or users. Deploying solutions to the app catalog make them available tenant-wide, but some solutions ...
0
votes
1answer
21 views

angular-aad-implicitflow

I see in SharePoint PnP Git repo: https://github.com/SharePoint/sp-dev-fx-webparts/blob/master/samples There is react-aad-implicitflow why not there is angular-aad-implicitflow. Is there any ...
1
vote
0answers
8 views

MSGrapClient request credentials on purpose

Is there a special way to ask a user for credentials when my app is initializing. For example, the app consists of several stages and at the 3-rd stage a user send ms graph request and if he's not ...
2
votes
0answers
26 views

Dynamic update Icon in SPFX client Web Part

I am using office ui frabric details list to display documents on spfx client web part from here. Now, I want to implement check-in/check-out icons to be displayed on spfx client web part dynamically ...
3
votes
2answers
50 views

SharePoint Online SPFx Apps: Why use a CDN for assets, why not simply use the SiteAssets library?

Why do the SPFx tutorials configure a library or a folder in an library as a CDN to host assets like scripts, images etc? I mean what is the technical difference to hosting the assets in the ...
1
vote
1answer
40 views

The requested operation is part of an experimental feature that is not supported in the current environment

I get this error : Error: The requested operation is part of an experimental feature that is not supported in the current environment. at e.getToken (sp-pages-assembly_en-...
0
votes
3answers
61 views

Reactjs, TypeScript & Webpack on SharePoint2013

I know that Reactjs, TypeScript & Webpack can be used on SharePoint Online to create web-parts. But can it be possible to create web-parts for SharePoint 2013 on premise. Please let me know if it ...
6
votes
1answer
231 views

Using MS Graph from SharePoint Framework 1.5.1

Can someone, please help me with figuring out how to use MSGraphClient from the latest SPFx version? MSGraphClient is supposed to help us to use MS Graph. My problem is that as soon as I add the line ...
1
vote
2answers
42 views

spfx MSGraphClient

I need to write a webpart, which shows data from the MS Graph. I wrote this example code import { Version } from '@microsoft/sp-core-library'; import { BaseClientSideWebPart, ...
3
votes
1answer
52 views

SPFx Developement Environment Setup issue

I am facing critical issue in setting up development environment for SPFx. I have refereed following link Link: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-...
0
votes
0answers
38 views

How to use the reusable components in SPFx projects

I am working in a SharePoint Framework (SPFx) project in Online version. We have created two separate projects, one is main project and another one is common project. The common project will contain ...
2
votes
0answers
35 views

TypeScript and SharePoint Framework question - although works but does it represent correct design?

Thanks for reading my question. I am just beginning to learn TypeScript and from my understanding so far I have created the follow code to retrieve list items from a list. The code works but I am not ...
1
vote
1answer
28 views

Create document from template in javascript on a modern sharepoint site

Does anyone know of an equivalent to the createNewDocumentWithProgID() or createNewDocumentWithRedirect2() JavaScript function that will work on a modern spfx SharePoint site?
3
votes
2answers
138 views

Office UI Fabric DetailsList(React) rendering: DetailsColumn.render() error

I am trying to add a very basic implementation of the Office UI Fabric's DetailsList React component to my project, but keep on getting the following error when trying to render it: 'DetailsColumn....
6
votes
0answers
55 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 ...
0
votes
0answers
41 views

Jquery Datatable rendering issues in SPFx webpart

There is compile time error when rendering jquery DataTable in spfx webpart. Please see below issue. ($.fn.dataTable.render) is showing below error Property 'dataTable' does not exist on type JQuery&...
1
vote
1answer
46 views

How to sort a sharepoint list according to average rating column in react js?

I have a list which is to be sorted accoring to the average rating column and the top 3 items is to be displayed in react js. This is the api endpoint used : ${this.props.siteurl}/_api/web/lists/...
2
votes
1answer
74 views

How to deploy SPFx web parts on SP 2016 on prem?

I am working on a development environment on SP 2016 on prem with feature pack 2. I have created a "Hello world" web part following this example. I am trying to deploy the SPFx web part to a classic ...
1
vote
1answer
44 views

Reuse Child Component Method to Parent Component Fabric React - SPFx

I am using Fabric React with SPFx. I want to use one component public method to another component. How can be possible to reuse method? My Parent Component: export class PanelSmallRightExample2 ...
3
votes
1answer
60 views

How to inject jquery sharepoint services to spfx

We are trying to inject jquery sharepoint services dependency to our sharepoint framework webpart. This is what we did. First added external files at config.json "externals": { "jQuery": { //"...
1
vote
1answer
21 views

“Converting” project from old to new technology?

I am working on a SharePoint project which started a couple of years ago. It started with SP 2013 on - prem, and we are now on SP 2016 with feature pack 2. In the project we used the Powershell based ...
3
votes
2answers
131 views

How to customize width and hieght of Dialog component of Office UI fabric in SPFX webparts

I need a Office UI fabric dialog component of 600 by 600 px in SPFX webpart. Tried className and containerClassName attributes both didn't work. The style attribute doesn't. The max-width is set to ...
0
votes
0answers
21 views

How to use jquery.slimscroll in spfx

I want to use slimscroll for a couple of SPFX webparts but having trouble to get things going. I used: npm i jquery-slimscroll npm i @types/jquery.slimscroll next to a couple of other modules (...
1
vote
1answer
47 views

Office UI Fabric Ract Command Giving an error UNMET PEER DEPENDENCY

Issue while adding command "npm --save install office-ui-fabric-react" NPM Version: @microsoft/generator-sharepoint@1.0.2 gulp@3.9.1 yo@2.0.2 How to solve this issue? It gives warning:office-ui-...
0
votes
1answer
82 views

SPFX Question Is it possible to include a custom font reference by extending the toolchain?

I have a custom font, I include it in the bundle and add it to the dist folder, but the js reference is still linking to its original location. Any ideas? [
0
votes
0answers
23 views

SPFx - REACT - WebPart: Child State Persists Through Parent State Change

I'm new to TypeScript and React. This issue has confounded me for some time and I'm sure that I have missed something fundamental. I need some insight into the proper way rebuild my app. I'm not ...
3
votes
1answer
89 views

SPFX and react-router

I'm having trouble getting react-router working on my SharePoint Web Part with React and TypeScript. I have tried react-router as a standalone webapp and it works fine. Just can't get it working on ...
0
votes
1answer
31 views

Unable to Send Email from SharePoint Code Behind

I am unable to send emails from SharePoint code behind. I've tried the following code: public static void SendEmail(SPWeb spWeb, string Subject, string message, string ToName, string ToEmail) { ...
0
votes
0answers
24 views

Add JS To SPFX Extension

We have added js to modern pages using SPFX extension using below link: http://www.sharepointnutsandbolts.com/2017/06/SPFx-Application-Customizer-Global-JS-Page-Header.html However, our js is ...
1
vote
1answer
56 views

SharePoint 2016 SPFx React TypeScript Issue

I am getting an error of TypeScript 2.2.2 in SharePoint 2016. I can install SPFx web part with No JavaScript Framework approach. And it's working fine but when I choose "React" in "yo @microsoft/...
1
vote
1answer
62 views

Cascading dropdown list in SPFx web part

Can someone help me with this issue as I would like to create cascading dropdown lists inside the web part itself and not in the property pane. I have found this code in [github react-...
0
votes
0answers
72 views

Spfx webpart on Classic pages with custom master page not working

I have an angular 1.x webpart application which is built using the spfx 1.4 version. The webpart works in the modern sites pages but is not working on the classic site pages with custom master page. ...
1
vote
1answer
64 views

How to open property pane in a SPFx webpart without going in edit mode?

Is there a way to open the property pane without going into edit mode?
0
votes
0answers
78 views

Advanced SPFx Search box web part

I have found a spfx search box in github, but I was wondering if there is one that has advanced functionality, like searching for specific sites, libraries, by content type? Is it possible to use ...
0
votes
3answers
51 views

ts Cannot find the module

I am very new to the SPFx I just started. I was making my first web part in Visual Studio Code but I was having some difficulty in my code. May be somebody can help. I have scss module in the same ...
1
vote
1answer
81 views

SPFx v1.5 building Extension and WebPart as single solution

I recently updated my SPFx framework to v1.5.0 and I wanted to create a solution that has both Extensions (Application Customizer) and Client Side Webparts. Now if I try creating a WebPart first and ...
0
votes
1answer
65 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
33 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 ...
0
votes
1answer
56 views

Retrieve & Display 'Person or Group' type column in a List using SPFX

I am trying to Get data from a Custom List & show it as a table using SPFX. By Refering this Link, displayed Single line of text type columns. But when trying to display Person or Group, ...