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 [sharepoint-framework]

The SharePoint Framework (SPFx) is a page and part model that enables client-side development for building SharePoint experiences. It facilitates easy integration with the SharePoint data, and provides support for open source tooling development.

11
votes
3answers
2k views

How does one pass parameters to SharePoint Framework Extensions in practice?

I am currently in the process of getting up to speed with SPFx and have gone through the Extensions Getting Started guide of the official documentation and skimmed a fair portion of the other ...
8
votes
1answer
743 views

Sharepoint framework experience. React or Angular?

I'm somewhat confused as to what technogy to use with Sharepoint Online framework experience. Is React/Redux the better dev option now for web parts that extend and build on sharepoint? Is Angular ...
8
votes
0answers
963 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
2answers
614 views

SPFx(On-Prem) - Property for single choice of Office-IU-Fabric - PeoplePicker

I need to use componen for SPFX webtpart v1.0.2 for On-Premise server and I want to choice only one person from Office-UI-Fabric - PeoplePicker component This is my HTML(.tsx) public render(): ...
6
votes
1answer
986 views

How to perform CRUD Operations on sharepoint lists using React and PnP-JS Core with SharePoint FrameWork (SharePoint 2016)

I would like to create forms using react and PnP-JS Core with sharepointframework to perform CRUD Operations on sharepoint lists. Do you have any simple examples I can look at and test on SharePoint ...
5
votes
3answers
5k views

SPX and Typescript - how to add references to SP.JS?

I am trying to start learning the typescript and sharepoint framework. What I have been having trouble with is how to add references to SharePoint js files such as sp.js? For example, what I am trying ...
5
votes
2answers
373 views

Is Callouts available in SharePoint Framework

I have a classic SharePoint Add-in and I am trying to convert it into SharePoint framework Webpart. I am getting the following error Cannot read property 'getFromLaunchPointIfExists' of undefined ...
5
votes
1answer
431 views

SPFx Webpart with AngularJS and Kendo UI defined as external

I'm developing an SPFx webpart with AngularJS and Kendo UI. Kendo UI requires jQuery before AngularJS. As I want to develop multiple webparts with AngularJS and Kendo UI I decided to reference ...
5
votes
1answer
1k views

Spfx - Bootstrap-Dialog

I have been struggling with getting bootstrap-dialog to work in an spfx client web part. So far I was able to get jquery, bootstrap, datatables working but can't seem to get bootstrap-dialog working. ...
5
votes
2answers
986 views

Include JavaScript file so it load automatically in SharePoint Framework

I am beginner and trying to include JS file in my SharePoint Framework Webpart. I learned how to call different functions of the JS file. I know you can include the file using const myScript = ...
4
votes
2answers
7k views

How to retrieve pageContext in SPFx?

I'm following the second tutorial from the SharePoint Framework dev center: Connect to SharePoint It states that you can retrieve details from this.context.pageContext, however this is no longer the ...
4
votes
2answers
719 views

SharePoint Framework Typescript typings

I am trying to get familiar with typescript and working with the SharePoint framework. Following a couple of tutorials, I decided to first see how to include external libraries such as jQuery or even ...
4
votes
3answers
627 views

Deploying both testing and production versions of an SPFx Webpart

I am trying to figure out how to deploy two versions of an SPFx Webpart to the App Catalogue. We need one for production and one for development. What I have tried so far: Modifying the ID in the *....
4
votes
1answer
195 views

SharePoint framework - jquery loading issues

I have a question about loading jquery as external in SharePoint Framework. I have worked through at least 20 different samples from at least as many different people and many of them MVP's. I can ...
4
votes
2answers
1k views

SharePoint Framework (SPFx) information questions

I have to present the SharePoint Framework(SPFx) to colleagues but I don't find answer to all my questions. I red main interests of SPFx are : improve the user experience open the door to open ...
4
votes
1answer
519 views

SharePoint Framework: Loading icon in property pane

I wanted to show loading icon on the drop down present in property pane, till it does not get the data. I am unable to find what needs to be passed to in this.context.statusRenderer....
3
votes
1answer
2k views

Hide/Disable property pane component based on another component's value

On my property pane for a SPFx web part, I've got a Toggle and a Slider component. How do make it so that when the Toggle is Off, the Slider is hidden/disabled?
3
votes
1answer
733 views

SPFX Gulp Serve for a wepart is not opening workbench

I'm trying to add a webpart through SPFX here but when i write Gulp Serve it's not loading the workbench.aspx. Instead, it's trying to load a contoso.sharepoint page and the page is not opening. Any ...
3
votes
1answer
3k views

How to use SharePoint FrameWork for SharePoint 2016 on premise

I am having a look at sharepoint framwork tutorials in order to use it in a SharePoint 2016 environment. However, all tutorials are related to SharePoint OnLine. So, I was wondering whether or not ...
3
votes
2answers
675 views

SPFX - After import babel-polyfill in my webPart(IE Issues)

I use react-table which does not work in a Internet Explorer 11 and I need to install babel-polyfill into my project(web pack); This is issue in github I follow this steps: 1) npm install --save ...
3
votes
1answer
421 views

SPFx - How to start workflow on list?

Do I want to start workflow where send an email with a new framework of SharePoint? Is it true that I can not start a workflow? What should I use? SPServices library JSOM PnP? Thank you ...
3
votes
1answer
578 views

Get SharePoint List Items using SharePoint Framework React

I am getting SharePoint list items using framework react with following code: Developing SharePoint Framework Web Parts Using ReactJS import * as React from 'react'; import { css } from 'office-ui-...
3
votes
1answer
38 views

Is it possible to hide a column from a user group using SharePoint Framework Extensions?

Would this be possible using a field customizer? I haven't used SP extensions yet so if anyone has good resources/documentation that would be appreciated.
3
votes
1answer
103 views

Close propertyPane in sharepoint framework

I'm using the following command to open my propertyPane in SharePoint Framework. this.context.propertyPane.open(); But there is sadly no close() option, so is there another way to close/hide the ...
3
votes
1answer
148 views

Set Userfield to allow Multiple using pnp in SharePoint Framework

I've Created a Field on my list PollAnswers and everything works fine with that part: pnp.sp.web.lists.getByTitle("PollAnswers").fields. addUser("Users", FieldUserSelectionMode.PeopleOnly).then(() =&...
3
votes
2answers
672 views

How to get the URL for a selected document in a sharepoint framework extension spfx

How can I obtain the URL for a selected document in a sharepoint framework extension? e.g. a friendly url or unique reference that a user can use to open the selected document; https://mysite....
3
votes
1answer
242 views

Use SharePoint Framework(SPFx) in SharePoint online 2013 Office 365

Till now I have been into developing SharePoint Add-ins, custom web pages, etc. My only query is with SharePoint more and more towards client side, Can I use SPFx in SharePoint 2013 online Office 365 ...
3
votes
1answer
242 views

How to replicate full-trust solutions in SharePoint Online

I have a question concerning SharePoint Online customization : Full trust solutions allow developer to customize almost everything on SharePoint On-premise. Is it possible to replicate the ...
3
votes
1answer
278 views

SPFx - This site can’t be reached after running gulp serve

Any one with the solution to the follow error ? Zero edit since yo @microsoft/sharepoint then gulp serve The following page error opens : Runing on node 6.12 . with the following installed : ├...
3
votes
1answer
359 views

SPFx - Template for Angular 2

I need to install an Angular 2 template, but when I try the GitHub templates I have mistakes. Would you give me a quality template or tutorial for Angular 2 with SPFx: Errors:
3
votes
1answer
446 views

SPFx SPComponentLoader.loadCSS external css

Im trying to put mapbox working on a spfx webpart. But having trouble with it when deploying the webpart to App Catalog On gulp serve, it works ok but when deployed to App Catalog it renders like ...
3
votes
0answers
939 views

“Error: Token renewal operation failed due to timeout” in adal.js SharePoint Framework React

I have developed a webpart to get Azure users using SharePoint Framework React with graph api. But in Adal.js file getting following error: Error: Token renewal operation failed due to timeout I ...
3
votes
0answers
599 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. ...
2
votes
2answers
766 views

Typescript errors in SharePoint Framework webparts

I created a new sharePoint framework webpart using the msdn link https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/build-a-hello-world-web-part After Executing the gulp serve ...
2
votes
2answers
44 views

Sharepoint Framework - custom webpart @ Sharepoint Online - app refers to localhost

I need to create a simple app using Sharepoint Framework - app will generate iframe with body taken from external vendor. Normally in regular HTML website I would just put tag in the head section but ...
2
votes
2answers
714 views

Deploying a SPFx webpart to multiple tenants without public cdn

We have developed a SharePoint Framework webpart and deployed the bundle files to our private CDN and the app package to our app catalog in SharePoint Online which are located in same tenant in which ...
2
votes
1answer
98 views

Send an email with SPHttpClient

I'm working on a web part for SharePoint 2016 on-prem and I want to send an email from the current user. I cannot use @pnp/sp library as it's not supported with TypeScript 2.2.2 and I'm unable to ...
2
votes
1answer
1k views

SPFx calls blocked by CORS policy

I'v been trying to access various apis through SPFx and I am constantly seeing this issue. I do not know how to fix this can anyone assist or explain what I am doing wrong or missing? This works ...
2
votes
1answer
133 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 ...
2
votes
1answer
901 views

Office UI Fabric Dropdown event onChange not working

I am creating SPFx component with React framework. For UI I am using Office UI Fabric controls. During my development I have found that "Dropdown" control's onChange event is not firing Based on ...
2
votes
2answers
100 views

Add Sharepoint Add-in/App programatically with JS or differently

Is it possible to add an app programatically automatically when new site is created? For example calling endpoint, automating click etc. SideLoading is not allowed in production Edit: target ...
2
votes
1answer
112 views

Do SharePoint Add-ins overlap SharePoint Framework solutions in any way?

I've explored SharePoint Framework solutions and I'm familiar with SharePoint add-ins. It's not clear to me the exact relationship between the two. Is it an either/or scenario or more of a mix? Can a ...
2
votes
1answer
125 views

Is it possible to set a Person or Group field through the REST API when the user is not listed on /sites/mysite/_api/web/siteusers?

My goal is to set a Person or Group field value on a new record to a user who may not have logged into the subsite "mysite" (and does not exist at endpoint #2 below), but who does exist at root ...
2
votes
1answer
481 views

Script to add SPFx webpart to a classic page using PnP Powershell

I have to run a Powershell script that creates a Site Collection App catalog , then add an SPFx webpart to it and publish it. Also it has to install it in the site. I have done upto this part. Last ...
2
votes
2answers
284 views

How to catch navigation event in SPFx webpart?

Is it possible to catch navigation event inside Sharepoint Framework web part? I know this is possible in application customizer using context.placeholderProvider.changedEvent, but I cannot find ...
2
votes
2answers
933 views

PageContextInfo: Page Context is undefined in sharepoint framework (Webpart)

I am trying to upgrade an old sharepoint project to the latest sharepoint framework. The client part is built with angular. As in spfx _spPageContextInfo is not available so I tired changing the code ...
2
votes
1answer
227 views

SPFx - How to install latest version of Office-UI-React for SPFx v1.0.2

How to install latest version of Office-UI-React for SPFx v1.0.2 for On-Premise server? With buildIn React version in SPfx framework v1.0.2 its all okay: I can not use the latest version, what else ...
2
votes
1answer
372 views

How to share data for all Web Parts (SPFx) within a SharePoint Online tenant?

We are an ISV and developing a SPFx Web Part using the new SharePoint Framework (The same question applies for the Script Editor Web Part too). The Web Part will be added to hundreds of pages across a ...
2
votes
1answer
62 views

MSGraph Permissions

I am trying to allow an app to get a user's manager. According to the documentation I need User.Read.All permission: So in my SPFx, I added the request: "webApiPermissionRequests": [ { "...
2
votes
1answer
140 views

Create document set with REST API in SharePoint Framework

I'm looking for a way to create a document set in my document library from within SPFx web part. I'm using @microsoft/sp-http module to create HTTP requests. Do I need to manually create some ...