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.

2
votes
0answers
14 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
54 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 ...
0
votes
0answers
11 views

Integrate SharePoint framework extension and angular 4 or above [closed]

How can i integrate SharePoint framework extension and angular 4 or above, to create a header. I need to get SharePoint list item using the angular service and the received result has to be placed in ...
2
votes
1answer
42 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
33 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
35 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
31 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
0answers
12 views

Generate a link to preview a document in the Document Library using Sharepoint Framework

Share links that Sharepoint generates are pretty long. I am working on an extension that generates a readonly/preview link to a document and uses a shortener to shorten the link. I have a working ...
0
votes
2answers
50 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
27 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
63 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
148 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
40 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
91 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
32 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
46 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
39 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
42 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
35 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
63 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
21 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
143 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
28 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
22 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
0answers
15 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
32 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
101 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
22 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
214 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
159 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
16 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
23 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
57 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
211 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
31 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
86 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
86 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
693 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
55 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
27 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
88 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
289 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 ...
1
vote
0answers
203 views

Sharepoint React Framework , office ui fabric css not getting applied on components

This is the current version of office ui fabric referened in my package : I am using sharepoint react framework and have used List component : Code Link : https://github.com/OfficeDev/office-ui-...
0
votes
0answers
92 views

SPFx:: pnp js :: Delete selected file from client web part using Reactjs

I have a SPFx client web part with documents from library. Now when I select item/row, I need to perform different operations like Delete/Check-in/Check-out based on the button events. I need to ...
1
vote
1answer
173 views

SPFx - CSS for property pane

I've created a SPFx web part called "Human Resources Announcements." However, the name is too long for the property pane title to hold all of its value in one line. How would I add custom CSS to the ...
2
votes
1answer
589 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?
1
vote
2answers
88 views

Correlation Id Error on Adding SharePoint framework Webpart

I'm Adding sharepoint framework Web part (on-permiss). But when Id add it to sharepoint page it gives correlation id error. Attached is the ScreenShot. this is the exception and message tracked by ...
2
votes
2answers
142 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
0answers
245 views

Custom SharePoint List forms in SharePoint Framework

We are migrating old SharePoint 2010 On Premise code to SharePoint Online. Part of the SharePoint 2010 on premise code has custom list forms developed with visual Studio. Thought of using JSLink for ...
5
votes
2answers
227 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 ...