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 [sharepoint-framework]

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
13 views

Sharepoint SPFx active toggle in list view

I'm new with SharePoint Framework and I want to achieve something like this: Github - React Field Toggle This solution is for SPFx v1.3 and in my environment (SharePoint Online) it's not working even ...
0
votes
1answer
33 views

How to add checkboxes to propertypane dynamically

I have a dropdown on my property pane which i populated with sharepoint lists. What i want to do now is to add the columns(fields) of the list(selected on the dropdown) as checkbox(on the property ...
0
votes
1answer
16 views

Can i restrict a App (which is deployed to our app catalog) from being added inside certain site collections

I have developed a client-side web-part by following steps simialr to those mentioned on this link Deploy your client-side web part to a SharePoint page (Hello World part 3) then i deploy the web ...
0
votes
0answers
18 views

Issue with deployment of Framework app to SharePoint 2019 server

While the "skipFeatureDeployment" option in package-solution.json works for me as documented and expected for SharePoint Online, I encounter an issue when trying to deploy the same app (which uses ...
1
vote
0answers
19 views

SPFX Angular Element with UI-Router not displaying data

Iam testing Angular Element with SharePoint Framework (SPFX) Webpart, as Andrew Conell has described in his Blog Every thing is working as asspected, i have added UI-Router in webpart just for ...
2
votes
1answer
193 views

SPFx calls blocked by CORS policy

I'v been trying to access various apis through SPFx and I am constantly seeing this issue. I do not know how to fix this can anyone assist or explain what I am doing wrong or missing? This works ...
0
votes
0answers
174 views

Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request

I'm trying to make a call to Slack by building the request inside SPFx webpart. I get this error: Access to fetch at 'https://slack.com/api/users.list/?token=xoxp-...
2
votes
1answer
39 views

Create button to change view in a list SP online

I have a Modern sharepoint online list with 2 views. Is it possible to create 2 button to change the view "on the fly"? either json or via ClientSideExtension.ListViewCommandSet.CommandBar or is there ...
2
votes
0answers
114 views

Sharepoint Framework Dialog, Modal and Panel not working

I have created a web part in react js which contains a Microsoft office UI fabric control "Modal" and it pop outs on a button click. This feature works fine on my local workbench but whenever I ...
2
votes
0answers
32 views

SPFx: Dropdown from 'office fabric ui react' is not working in yo sharepoint generator's latest version 1.6.0

I have build a web part using SharePoint framework with SharePoint generator version 1.3.4 with dropdown multiselect=true in UI and then updated it to version 1.6.0 now the dropdown is not working. (...
2
votes
1answer
29 views

How to do a tenant wide extension for classic view?

I'm developing a End User License Agreement using spfx extension that is deployed as a tenant wide app. the behavior is that when a user logged on a pop up will appear that they need to accept so ...
1
vote
1answer
285 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
78 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
38 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.
1
vote
0answers
99 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
1answer
61 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-...
2
votes
0answers
45 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
264 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
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 ...
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 ...
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
196 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
106 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
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
1answer
222 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
647 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 ...
1
vote
1answer
381 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
59 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
64 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
92 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
100 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
144 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
137 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
303 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
62 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
38 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
51 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
58 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
144 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
30 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
457 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
364 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
22 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
61 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
107 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
521 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
52 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 ...
2
votes
1answer
294 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 ...