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

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.

0
votes
0answers
19 views

Cannot find module '@microsoft/sp-build-web'

I got an error while I was executing gulp trust-dev-cert command in the SharePoint 2016 Management shell for developing the SharePoint Framework web part. To solve this error, I was trying npm ...
1
vote
1answer
65 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 ...
1
vote
1answer
33 views

Issues Loading External JS Library from CDN in a SharePoint Framework (SPFX) Web Part

I have a pretty fundamental issue/question. I have been trying to load non-AMD script to my SharePoint Framework web part (trying to show a StatusPage widget on our SharePoint site). This definitely ...
0
votes
1answer
32 views

Sticky BottomPlaceholder

Is there anyway to make a bottomPlaceholder footer (using ApplicationCustomizer) sticky? The footer I am making is rather large and cannot be on the screen all the time.
0
votes
0answers
20 views

“Undefined” results with REST Query

I have a web part that extracts list items from another list and outputs them in a HTML table. However, the list items that gets output have "undefined" values. I know somewhat why - the call is ...
1
vote
0answers
30 views

Gulp Serve Error: Error: EISDIR: illegal operation on a directory, symlink

I am following the instructions in this guide. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part The only difference is that I installed yo ...
0
votes
0answers
14 views

Retrieve list items by content type with sp.search

I have a list that I want to populate with items from another list by their content type. For a REST call it would be: /_api/web/lists/getbytitle('MyList')/items?$select=ContentType/Name&$expand=...
0
votes
1answer
29 views

How do i get current aspx sitepage with SPFx

I have build a webpart with SPFx and using following libraries @microsoft/sp-core-library": "1.6.0 @microsoft/sp-lodash-subset": "1.6.0 @microsoft/sp-office-ui-fabric-core": "1.6.0 @microsoft/sp-...
0
votes
0answers
25 views

Spfx webpart: how can we update selected item doc icon only using reactjs

In spfx web part, When I select an item and check out it is checking out item as expected. But i would like to change the icon to indicate check out status. Thanks in advance.
0
votes
0answers
33 views

How to prevent changing iframe content after click

I would like to build a SPFx app but I don't want to build everything, I´d like to use as much as I can OTB. The idea is to have one SPO-list witch should be hidden but I would like users to be able ...
2
votes
0answers
37 views

SharePoint Framework 1.6 MSGraphClient Error

I receive the following error trying to call Microsoft Graph using MSGraphClient in a new SharePoint Framework 1.6 Web Part. The requested operation is part of an experimental feature that is not ...
0
votes
1answer
164 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
1answer
185 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 ...
0
votes
1answer
100 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 ...
0
votes
1answer
41 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
76 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 ...
0
votes
2answers
74 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 ...
2
votes
1answer
30 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
1answer
124 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
1answer
379 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
60 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 ...
1
vote
1answer
236 views

SharePoint Framework - basic read list items using typescript

I have a question on the following code. All of the code is taken after reading through various get started samples and then tweaked it a bit. I am trying to figure out how it works which is straight ...
2
votes
2answers
40 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 ...
3
votes
1answer
54 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 ...
1
vote
1answer
63 views

Extract uploaded email metadata into SPO columns: feasible with SPFx?

I am attempting to develop a solution to provide the following functionality: When an email file (.msg) is uploaded to a SharePoint Online folder configured for emails, the email metadata (to, from, ...
3
votes
1answer
73 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(() =&...
1
vote
0answers
83 views

sharepoint framework call async function

Help please, I'm trying to call the function to get the number of comments from the modern page, but I can not correctly display the result in the html code: private async getSitePageComments(id: ...
1
vote
1answer
92 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/...
0
votes
1answer
22 views

After creating folder return data is empty

I using the code below, but and the script that creates the folder on my SP online server is working just fine, but the problem is that return data is undefined $.when(pCreate(path + "/" + name))....
0
votes
0answers
240 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
0answers
40 views

I need to call the out of the box web parts inside the custom web part created using SharePoint framework

I have a web part created using SPFX now i need to call the existing SharePoint OOTB web part inside the custom web part.Is it possible to achieve this?
0
votes
0answers
30 views

How to use ADAL in SharePoint Framework Context Menu Extension

I have custom Context Menu Extension created usign SharePoint Framework. Not Webpart. Added two context menu items for document library. And I need to use ADAL to acquire token from Azure AD when I ...
0
votes
1answer
35 views

SPFx image previewer extension

I am looking around to create an image previewer extension using SharePoint framework. I don't want to reinvent the wheel, so I am just wondering if there are some ready components which I can include ...
0
votes
1answer
39 views

Error implementing custom SPfx App

I have a problem implementing my share-point SPfx app to the share-point site of my organisation. I followed the instructions provided by microsoft at https://docs.microsoft.com/en-us/sharepoint/dev/...
0
votes
1answer
128 views

New option could not be placed in ECB menu using SPFX after project deployed and add-in is installed on the site!

I have created one spfx project to place the new option(custom option) in the Edit Control Block(ECB) menu for modern SharePoint site CustomList and it also works fine when i'm testing it on the ...
0
votes
0answers
26 views

Filter List based on multiple values in another list

I am attempting to filter a list based on another list before loading the default view for each list. I have a Users list with budget number and user id that links to all of the other lists that ...
2
votes
2answers
328 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 ...
0
votes
0answers
259 views

Property 'serviceScope' does not exist on type 'IWebPartContext'

I'm trying to Recreate this sample/demo I face a problem when I try and run the same or create it from scratch myself. I get the following 2 errors: error TS2339: Property 'serviceScope' does not ...
0
votes
0answers
18 views

Creating a new WikiPageTab Button in SharePoint Framework

Is there a way to create a new button inside the "WikiPageTab"? Or is it better to use addins for this one? I am trying to create UI for a URL shortener in SP. So the user can see his saved SP URLs ...
1
vote
0answers
39 views

Cannot debug SharePoint Framework command set extension in Visual Studio Code

As mentioned in this guideline I am able to get debugging in VS Code working for a SharePoint Framework web part: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/debug-in-vscode However command ...
1
vote
0answers
73 views

REST API call Orderby - JSON changes my order!

So the below function, gets data from a list in a certain order - by SortOrder column. If i go to the url in my browser and run it the order is as expected, however the output (JSON) seems to then ...
3
votes
1answer
367 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 ...
0
votes
0answers
45 views

Facing Issue in Kendo UI controls with Jquery and SharePoint Framework Webpart

I am facing the issue while rendering the Kendo UI grid/Chart with SharePoint List Data. I am getting following error Uncaught TypeError: $(...).kendoGrid/kendoChart is not a function I have two ...
1
vote
1answer
177 views

Document Thumbnail via rest api (sharepoint framework)

I am using rest api to get the items from a document library: /_api/web/lists/GetByTitle('${listName}')/items?${queryString} However none of the returning properties is a thumbnail image of the ...
0
votes
2answers
174 views

SPO: when a document is added in library, then create an item in a different list

My senario is like this: when a user uploads a document in a document library in SPO, then a new item is created in another list with some information from the document which was uploaded. On ...
1
vote
1answer
984 views

SPFX: How to add item in SharePoint list with attachment?

I have created a SPFX webpart to add item in list with attachment. How to add item with attachment ?
1
vote
1answer
62 views

SPFx On-prem - How to lock thread when add new item with PnP-JS

I have list column where save unique department number and I want to lock thread when add new list item, because when two users click in the same time button save - department number is duplicated. ...
0
votes
1answer
49 views

Microsoft Sync Framework for SharePoint 2010

The internal security audit says that Microsoft Sync framework needs to be updated to SP1. Is it ok to install the Microsoft Sync Framework Microsoft Sync Framework 2.1 Software Development Kit ...
0
votes
0answers
108 views

SPFx: Get item id/file ref of selected item in the butting click event using Reactjs

I would like to fetch selected item Id and file reference Url in the button click event. Thanks in advance
0
votes
2answers
365 views

Call custom javascript before loading any SPFX webparts

I have a requirement, where i want to fetch certain properties from user profile.For this i have created a file which fetches data from user profile and store in global variable. I was able to add ...