Questions tagged [spfx]

General technical questions about the SharePoint Framework client-side development model.

The SharePoint Framework is a Page and web part model that enables client-side development for building SharePoint experiences, which is built by Microsoft's SharePoint product engineering team and community contributors, and hosted on GitHub.

It facilitates easy integration with SharePoint data, and provides support for open source tooling development. If you have technical questions about the framework, Microsoft monitors this tag on SharePoint StackExchange.

Use , , to ask questions about SPFx webparts, SPFx extensions and SPFx tooling respectively.

Additional Resources:

  1. Overview of the SharePoint Framework
  2. SPFx Samples on GitHub
2012 questions
11
votes
5 answers

Content Editor webpart Vs SPfx

I want to know what's the difference between using content editor webpart and sharepoint framework, aren't they going to do the same thing?
Jacky
  • 319
  • 4
  • 12
7
votes
3 answers

In SPFx, do I use CSOM, REST or something else?

OK, we have got SharePoint framework now, but how do we access the data in SharePoint programmatically? What API do we use? Did Microsoft introduce any new API? And can we still use the CSOM and REST? I am not talking about which framework to use,…
Burre Ifort
  • 1,337
  • 2
  • 25
  • 56
4
votes
1 answer

Extract source code from .sppkg file

Is it possible to extract code from a SharePoint Package file? I have a package installed in App Catalog. Is it possible to get the SPFx code from the package file?
404
  • 2,215
  • 4
  • 15
  • 39
4
votes
1 answer

How to supply a querytext parameter to the Search REST API without receiving an 500 (Internal Server Error) in return

I have successfully got the SharePoint framework https://github.com/SharePoint/sp-dev-docs/wiki working and am now trying to use it to do a Search via the REST api. If I do not specify a queryText parameter in the URL then I get a 200 OK response…
3
votes
1 answer

Setting Web Part Properties From Outside the Property Panel?

I have created a custom async Property Pane Dropdown to grab list information which in turn renders data to the page depending on what list is chosen. The rendered information is saved to the root React component's state and can be further…
Heythisispaul
  • 93
  • 1
  • 8
3
votes
1 answer

SPFX - Update metadata of current page

I want to create a webpart where the user can provide additional metadata to a page. Does anyone know if this is possible to achieve? I guess there can be some issues with updating a page that currently being updated. I also need to be able to get…
Frank H
  • 340
  • 3
  • 18
3
votes
0 answers

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
1 answer

SPO site collection app catalog and custom scripting

Do we need to enable custom scripting in site collection before setting up app catalog in site collection? Thanks, Praveen Kumar P
2
votes
1 answer

Trouble Generating Project with Yeoman SharePoint Generator

The following command is hanging at 'Add new Web part to solution' when I run it from the project directory: yo @microsoft/sharepoint --solution-name first-test --framework react --component-type webpart --component-name FirstTest --environment spo…
2
votes
2 answers

SPFx call a function

We have created SPFx react web part. We want to display data from SharePoint list into a grid. One of the fields is a date field. So need to format the date field. Below is the success function: success: function(resultData) { …
404
  • 2,215
  • 4
  • 15
  • 39
2
votes
3 answers

Workbench is showing empty without any error

I am having the issues with my workbench and its showing me the blank page with no errors on it. Here is the console execution gulp serve Build target: DEBUG [11:08:42] Using gulpfile C:\users\xxxxxx versions \gulpfile.js [11:08:42] Starting…
AIM4DREAM
  • 641
  • 8
  • 23
2
votes
1 answer

When I am trying to install @microsoft/generator-sharepoint, I get below error. Kindly note that my node version is v10.6.0 and npm version is 6.2.0

i dont know how to install this help me if someone can i am getting 404 error @microsoft/generator-sharepoint, I get below error. Kindly note that my node version is v10.6.0 and npm version is 6.2.0
AIM4DREAM
  • 641
  • 8
  • 23
2
votes
0 answers

Error: Argument of type 'typeof ModernCharts' is not assignable to parameter of type 'string

Cloned Modern Charts https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-modern-charts Added webpart src folder to my existing working project. Ran gulp serve and received error: Argument of type 'typeof ModernCharts' is…
Andy
  • 21
  • 2
2
votes
0 answers

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 (posting external forum)
Jeff
  • 81
  • 6
2
votes
1 answer

Provision files (css, js) with SharePoint Framework

Does anyone know if we could provision js files to SharePoint site using SharePoint Framework ? I read on Microsoft Dev that it could provision SharePoint data (sitecolumns, contenttypes, lists) but nothing about the document files (js, css is my…
Thi Vo
  • 364
  • 5
  • 14
1
2 3 4