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.

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

0
votes
0answers
18 views

SPFX Textarea Render Issue in IE11

I have the above Textarea displaying some dynamic address, it displays and keeps my CSS styling as wanted in Chrome (Version 67.0.3396.99 (Official Build) (64-bit) ) with no border or other issues but ...
0
votes
1answer
27 views

Enable SPFx extension on a document based on specific content type

Can we enable SPFx extension on a document created based on a specific content type. I want to enable (make visible) ListViewCommandSet.CommandBar based on the document of certain content type ...
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
0answers
19 views

Include Specific list in PnP Provisioning

I would like to use PnP Provisioning engine to clone list from one site to another. In order to do so, I would like to create provisioning template with just one list in it. When I use ...
0
votes
1answer
19 views

With PNP JS, How do I handle odata.null return values?

I'm using @pnp in my SPFX project, and I need to get tenant property. The code is as followed: sp.web.getStorageEntity('mytenantproperty1') .then((prop: StorageEntity) => { //How do I ...
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
1
vote
1answer
31 views

Using Commandbar from Office UI Fabric React v6.47.2 for SP Starter Kit

I am currently refactoring some parts of the SP-Starter kit so as part of this, I am creating new solutions and manually adding code from the starter kit over to my solutions. Since I am creating ...
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 "...
2
votes
1answer
24 views

Disable only Modern Team Site Creation but allow Modern Communication Site Creation

I wanted to know, if we could disable the modern Team Site Creation button when +Create Site is clicked but at the same time allow users to create Modern Communication Sites from the +Create Site ...
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 ...
1
vote
1answer
35 views

Add SPFx app to a SharePoint site via REST or CSOM

I have 300 Subsites and want to add my custom SPFx Extension to all those subsites. Manually I know how to archive that. I just go to site contents and add my app. But I want to solve this ...
1
vote
1answer
31 views

How can I save data from Sharepoint Extension?

I am currently creating a SharePoint extension (with spfx), At the first lauch of the extension, I have one registration form (7 input, type string). How can I save this data on the sharepoint site ...
3
votes
1answer
32 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 ...
2
votes
2answers
36 views

Frequent sites on SharePoint Online Home Page

Is there a way I can have "Frequent sites" on my website? Is this a webpart or SpFx component that I can add to any of my existing site? I would like below into my own site page. Digging bit more I ...
0
votes
0answers
27 views

Is it possible to get custom button on a modern sitepage

Is it possible to make a button on a SitePage? Is i've tried using ListView Command Set extension with SPFX, but it doesn't seem to work
1
vote
1answer
24 views

Can I get a list/library's Relative URL using PnP when I have its ID?

I tried grabbing it by calling web.lists.getById([THE ID]).get() but the relative server URL was not in the payload. Is there another method I should use or is there a REST endpoint that provides ...
2
votes
1answer
56 views

Angular 6 and Sharepoint SPFX

Just wondering if anyone has any samples or links to instructions for running an angular 6 app on Sharepoint SPFX. I have followed this example for Angular 5 but it will not work once I upgrade the ...
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 ...
2
votes
0answers
19 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 ...
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 ...
0
votes
0answers
26 views

Group SPFx Commands - Command set extension

I'm creating SPFx command set extensions for my application. It has set of commands which I would like to group under single menu. Like we see in "Open", "New", "Flow" commands Any help would be ...
2
votes
1answer
49 views

Error: Upstream proxy port is required while creating spfx project

I am facing some issues while creating an SPFX project from cmd. Below is the error screenshot. Does anyone have solution to this error??
2
votes
1answer
36 views

SPFx Field Customizer: Customization does not appear if document library is is within a webPart

I finally made my field customizer work in SharePoint online. It provides a URL field with modified link based on other item metadata. It creates a custom view which shows the new column provided by ...
2
votes
2answers
49 views

SharePoint Online Modern site/pages CSS file

I'm looking for some information about how the Theming and Styles work on modern sites. But I don't find what I need. In SharePoint Online modern sites, there doesn't seems to be a CSS file which we ...
2
votes
2answers
39 views

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\...
0
votes
0answers
20 views

Debug SharePoint Framework with Visual Studio Code

I am following instructions from below link in order to debug SharePoint Framework, https://docs.microsoft.com/en-us/sharepoint/dev/spfx/debug-in-vscode When I do "gulp server" i can see local ...
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
0answers
19 views

Implementing Font Changes on Modern Pages [duplicate]

I'm attempting to implement font changes on a Modern page, possibly including webpart components. The UI currently ignores changes to the site fonts.
1
vote
0answers
40 views

SPFx Field Customizer deployment: main js not loaded from CDN in SharePoint Online

I try to deploy my first Field Customizer app to a SharePoint online tenant. Tried several things, without CDN and with bundled assets, now using a CDN (which I previously configured with 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-...
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, ...
4
votes
2answers
37 views

SPFx- Routes vs toggling visiblity

I have a requirement in which I have to hide the component from the page and load a new component. Which one is the preferred approach: Toggling the visibility of component Using routes
1
vote
1answer
36 views

SharePoint SPFX : Workbench issues

The above shown is the configuration of serve.json and when i gulp serve its redirecting to this url https://localhost:4321/temp/workbench.html and the page shows empty. Here is the image below
2
votes
1answer
24 views

SPFX Field Customizer: how to get full path of document in document library?

I am creating a Field Customizer to display a hyperlink in a column in a document library view following this tutorial: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/...
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-...
1
vote
0answers
26 views

Not able to print HTML based on If statement

So I'm trying to print some HTML code depending on the IF statement. but I'm getting "undefined[object Object][object Object][object Object]" public render(): React.ReactElement<ISPWebPartProps&...
1
vote
1answer
17 views

Register CustomAction link to site settings from Element.xml from sppkg

Is it possible to register CustomAction link to site settings from Element.xml from SPFx package (SPPKG) in SharePoint Online? I am able to create following using Element xml file using SPPKG; ...
2
votes
1answer
31 views

Spfx Site Designs - IsDefault behaviour has changed

When site designs were first launched, I swear that using the IsDefault parameter only added the site design to the default SharePoint site templates. Now it appears that IsDefault both modifies the ...
2
votes
1answer
32 views

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
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?
2
votes
1answer
37 views

Sharepoint Question/Advice - change excel form/graphs into something more interactive

We currently have an excel file that is a large table that the user fills out and then some graphs are manually created from the data. We have a sharepoint online modern site (using Spfx for any ...
2
votes
1answer
41 views

SPFx extension unrelated ApplicationCustomizerContext type tsc error

I have encountered dificulties using the ApplicationCustomizerContext type and the TypesSript 1) I have created a spfx application customizer 2) I have added in the application customizer main ts ...
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....
2
votes
0answers
52 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 ...
3
votes
1answer
31 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(() =&...
2
votes
1answer
69 views

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 ...
1
vote
1answer
92 views

SPFx - Get User ID from User Login Name

As the title suggests, does anyone have a working method for getting a users ID from a users Login Name (not the one signed in)? Login name like: i:0#.f|membership|firstname.lastname@contoso....