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.

4
votes
1answer
143 views

SPFx webpart not updating with latest spkg uploaded

My Spfx spkg uploads successfully to the apps catalog. Tenant wide upload is enabled. When I do 'Add an App', This app is not available for installation under 'From your Organisation' Although when ...
0
votes
1answer
50 views

where do i need to add my custom javascript (which will be rendering the results inside the modern web part) inside my client-side web part project

I have built my first client side web part as mentioned on this link https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part. now the web part will show ...
0
votes
1answer
33 views

Return items within Date Range

My array: urlArray = dataArray.map(function(item){ return { Id: item.Id, Title: item.Title, ...
1
vote
1answer
158 views

SPFX - cannot get actual label of managed metadata list field

I am using @pnp/sp to get list item data from sharepoint and i am getting list items with managed metadata field and user field. i can get all but not the metadata label which is the one i mainly need....
0
votes
1answer
45 views

Enable SPFx Command Extension on a document inside a Document Set

I have created a SPFx command extension for document libraries and it is visible and works fine for the documents inside the document library. But when I create a document set inside document library,...
3
votes
2answers
77 views

SPFx: Can you use WebPartContext in components different than the main one?

I am trying to call Microsoft Graph from a component, different than the main one. As a first step I am declaring a variable for the MSGraphClient's serviceKey like this: const graphClient: ...
0
votes
1answer
263 views

SPFx - Gulp serve fails

I had 2 webparts in my solution. But when i tried to add the 3rd webpart, it successfully adds. But after that "gulp serve" fails. Below is the error message D:\Bloom\Code\BloomWebparts>gulp serve ...
2
votes
3answers
191 views

Call Dynamic CRM API from SPFx

I want to call Dynamic CRM API from SPFx. What I've tried so far. Code: this.context.aadHttpClientFactory .getClient('{ApplicationId}') .then((client: AadHttpClient): void => { client ...
1
vote
1answer
230 views

SPFX 1.6 msGraphClient error on SharePoint app

I created a SharePoint Framework 1.6 webpart which uses the MSGraphClient. On all browsers (tested with IE11, Edge, Chrome on laptop. Tested with Chrome, Edge, Samsung browser on cell phone ) this is ...
0
votes
1answer
63 views

Setting default content type in Sharepoint Framework

I'm creating a list and then adding an existing content type to it. Is it possible to set the content type as default? Or would it be possible delete the primary content type? Here's my code. Thanks ...
1
vote
1answer
207 views

SPFx adal acquire token renewal failed

I have created an angular-adal SPFx project, now when I'm trying to acquire the token. It always displays a message: Token renewal operation failed due to timeout adal.acquireToken("Dynamic 365 ...
2
votes
1answer
309 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 ...
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 ...
0
votes
1answer
59 views

Problem adding a Site Script and Site Design

We are looking at Site Designs for some things we want to do like Content Types, set theme, site columns, and I'm trying to add a really simple Site Scrip but I'm getting the following error. So I ...
1
vote
1answer
843 views

SPFx problem with code from github

I'm trying to use the CDB promoted links webpart (from github) for modern pages but I need to make changes to the code (just the colours, nothing structural), So far so good- runs on the workbench but ...
1
vote
1answer
37 views

What do i need to do for gulp serve to work? On Windows 7 64 bit gulp serve raises error in module.js:549

So this below is the output from running gulp serve - what do I need to do to get it running? M:\>gulp serve module.js:549 throw err; ^ Error: Cannot find module '@microsoft/sp-build-web' ...
0
votes
1answer
145 views

How to load the external CSS first in SPFX Extension before the web parts renders

We are loading a custom CSS using SPComponentLoader in SPFX Extension. We are using those styles in other web parts. But while the page loads the ui is not coming properly as the Custom CSS loads ...
1
vote
1answer
208 views

SharePoint Framework SPFx - Using PNP js How to get and save value in Yes/No sharepoint column

I am creating custom webpart in SPFx. I have a yes/no column. I have to use PNP js to get the value, when that check box got selected. That value I should save it in SharePoint column as Yes, if its ...
5
votes
3answers
452 views

Angular and spfx learning guide

I am getting started with spfx and i have no prior knowledge of angularjs/angular. Recently i saw a blog post that says to use angular element to develop webpart. Can you guys please guide me on ...
1
vote
2answers
256 views

Trying to use SPFX + React. Error “yo : The term 'yo' is not recognized as the name of a cmdlet”

I want to build my first SPFX React web part, so i am following this article:- https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/use-fabric-react-components first step i ...
0
votes
1answer
50 views

Adding a custom view to a list doesn't add all columns (Using PnP in Sharepoint Framework)

I'm creating a list with PnP with an allready existing content type and then I'm trying to add a custom view with the columns from that content type. The problem is that the view gets created but it ...
1
vote
1answer
18 views

What is the timeline to fix the known bug with list and library extension support in the classic experience?

I have a working SharePoint Framework extension but I need it to work across 200 classic sites that use the modern library experience. However, according to the overview for extensions: There is ...
1
vote
0answers
160 views

Error when running gulp serve, when implementing SPFX with Angular 4

Implementing SPFX with Angular 4 using the below link: https://blog.hubfly.com/solutions/how-to-integrate-sharepoint-framework-spfx-with-angular-4. Getting the below error after running the gulp ...
1
vote
1answer
193 views

Use an existing Content Type when you create a new list with PnP-js in SharePoint Framework?

I've searched for hours to find an answer, but wasn't able to find anything I could use for my case. I'm using PnP to create a new list on my site but I would like to use an already existing Content ...
1
vote
1answer
120 views

Can I use a SPFX ListView Command Extension to copy files from another library?

I'm looking at using the ListView Command SharePoint Framework Extension on a SharePoint document library. Essentially all it will do is have one command called "New Project". On selecting the ...
0
votes
0answers
38 views

SPFx Non Reactive WebPart Pane Props with Cascading Dropdow

I was trying to build out cascading dropdown webpart props (ref MS Docs). To this I have set the disableReactivePropertyChanges() to true. Expected Behavior The properties in the property pane ...
0
votes
0answers
66 views

Search query not working when using a date variable (does when hard-coded) in Internet Explorer

Issue In my SPFx app I am using search to pull back events. Everything is working great, except in IE and Edge. I have determined what it doesn't like, but not why it doesn't like it. Rendered ...
0
votes
1answer
619 views

SharePoint Online full-width page

I am still exploring SharePoint Online creating webparts and deploying through visual studio code using Typescript. I created a HelloWorld webpart and uploaded it on page. I was able to create ...
0
votes
0answers
84 views

SharePoint Framework Web Part on a Classic page

I created a React - web part for SharePoint using react-slick carousel and react-player. The web part works great and is responsive on modern pages. I created a custom classic page layout using ...
0
votes
1answer
60 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 ...
1
vote
1answer
113 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
35 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
46 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
92 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
290 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
49 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
114 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 ...
1
vote
1answer
246 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
109 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
33 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
83 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
2answers
135 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 achieve that. I just go to site contents and add my app. But I want to solve this ...
1
vote
1answer
151 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
221 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
256 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
49 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
361 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
646 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
89 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
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 ...