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

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

0
votes
0answers
11 views

SPFX Tab event key not being detected when page is published

i created an spfx app and i have a form that inputs multiple items like so: i am capturing the keydown press through: switch (event.key) { case 'Enter': this.setState({ ...
0
votes
1answer
26 views

Is there a yeoman generator for SharePoint Add In's?

I am coming back to Sharepoint development after 6 years. I initially thought that I needed to build a SharePoint Hosted Add-In. I want to build an app that operates within a SharePoint site. It will ...
0
votes
0answers
18 views

spfx webpart custom themes

I have created a simple webpart then I define background for element background-color: "[theme: themeDark, default: #005a9e]"; , and on site page it inherit color and show themeDark of current set up ...
1
vote
1answer
9 views

Provisioning Lookup field with reference to another provisioned list

I'm trying to provision two lists (List 1 and List 2). List 1 has a Title column and in List 2 i want to create a Lookup field with a reference to the Title column in List 1. The problem is that ...
0
votes
0answers
10 views

why is my fabric react ui people picker returning different properties on item edit?

I have an issue with the fabric ui react people picker. basically, i need to get the userids of the users with this code: public getUserIds(userInfo: any[]): Promise<any> { let resp; ...
1
vote
1answer
21 views

Not specifically SharePoint but JavaScript dev using spfx

Can someone explain to me this: private _getMockListData(): Promise<ISPLists> { return MockHttpClient.get() .then((data: ISPList[]) => { var listData: ISPLists = { value: data ...
0
votes
0answers
14 views

is there property called ''pdfConversionUrl' in sharepoint extension

I found pdf conversion url like this https://northeurope1-mediap.svc.ms/transform/pdf?provider=spo&inputFormat=docx&cs=fFNQTw&docid=https%3A%2F%2Fdenterprise.sharepoint.com%3A443%2F_api%...
0
votes
1answer
27 views

spfx peoplepicker- change state on remove suggestion

I want to change a state when the user remove a person from people picker? <NormalPeoplePicker onChange={this._onChange.bind(this)} onResolveSuggestions={this....
0
votes
1answer
17 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
1answer
34 views

How to default select user in People Picker?

I want to set default selected user on people picker? <NormalPeoplePicker onChange={this._onChange.bind(this)} onResolveSuggestions={this._onFilterChanged} ...
0
votes
0answers
15 views

Peoplepicker get all users in tenant

How can I get all of the users in my tenant? I get just the users in a group. This is my code: private _getPeoplePickerItems(items: any[]) { console.log('Items:', items); } public render(): ...
0
votes
0answers
21 views

how to handle click event of custom menu item which created through the sharepoint add-in custom action

i created custom action of menu item using sharepoint hoshted add-in. instead of url redirection when click custom menu item ,is there way to handle click event of this item? <?xml version="1.0" ...
0
votes
1answer
42 views

spfx get value from input

How te get the value from input, i always get the default value from the input field. This is my code: export default class HelloWorldWebPart extends BaseClientSideWebPart<IHelloWorldWebPartProps&...
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 ...
0
votes
0answers
29 views

spfx MSGraphClientt

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, ...
0
votes
1answer
21 views

sharepoint pnp calls returns undefined even before calls to SP finishes

I am working in an spfx project and i need the user ids of the users from the SharePoint persona people picker of fabric ui. here is what i have so far. component that calls the function: let ...
0
votes
2answers
37 views

SPFX Web Part Disappears on Save

I have a weird issue. In this one web part, it works when I add it to a page. But it disappears once the page is saved. Additionally, web part properties for the web part also don't persist. Once a ...
1
vote
1answer
18 views

Cannot deploy SharePoint Framework packages anymore after upgrade to SPFx 1.6

Cannot deploy SharePoint Framework packages anymore after upgrade to SPFx 1.6. Few blogs suggested that its because of the webApiPermissionRequests crossing more than 255 characters. Is there any ...
0
votes
0answers
18 views

Shimmer is absent in package 1.5.1

I am building the SPFx webpart (1.5.1 version) using yeoman, and it deploys the same fabric core version automatically (1.5.1). I chose the React framework. So in project's package.json I see "@...
0
votes
0answers
23 views

GroupedList renders checkboxes not in correct way

I use Fabric UI GroupedList component together with Checxbox component, but it seems to work not in correct way. When I put сheckboxes in GroupedList they become to work not as usual. The checkboxes ...
2
votes
2answers
136 views

SPFx Single Page Application

Can you Create a Single Page Application with SPFx yet ? I Want to Create a single Application that can handle (CRUD) several lists.
1
vote
1answer
22 views

How to set serverProcessedContent in a ClientSideWebPart

I'd like to add a file viewer web part to the home page of my online modern site via an SPFx Part. To try to make things easier, I have a fully configured file viewer part with an Excel file on a ...
0
votes
1answer
58 views

Upgrade SPF'x to 1.6.0

In a solution i had 2 SPF'x web parts and 3 SPF'x Extensions. I need to upgrade the web part to SPF'x 1.6.0. So i have updated my package.json references to 1.6.0. Then i had ran the "npm install" ...
0
votes
0answers
26 views

Issue with SPFX 1.1.0 and VueJs

I have been trying to implement version 1.1.0 of spfx with VueJS as it has SP2016 on prem support, every example and guide I have tried fails to build when using the older version of spfx. When ...
4
votes
1answer
50 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
47 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
21 views

Return items within Date Range

My array: urlArray = dataArray.map(function(item){ return { Id: item.Id, Title: item.Title, ...
0
votes
0answers
16 views

Query data from Azure table storage using SPFX

i currently have a requirement to display Azure table storage data into a table created using SPFX (react). i have created an azure table storage already with a cosmos db storage. i have read the ...
0
votes
0answers
20 views

How to disable/enable minify with SPFx?

There is a web part made with SPFx that works correctly with Chrome. But with IE and Firefox it only works if tested with gulp serve. When build with ship option and moved to tenant it gives following ...
1
vote
1answer
36 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
0answers
29 views

When bundling a SPFx web part (i.e. gulp bundle), what is the json file for that is created within temp/deploy folder?

When bundling one solution using "gulp bundle --ship", I get two files within the "temp/deploy" folder: 768ccd78-850f-4c39-b457-b9e43e9ca339.json web-part_d46327de559c749c6fed216a0c58314b.js I ask ...
0
votes
1answer
30 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
41 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
120 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
84 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
0answers
92 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
0answers
21 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
101 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
90 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
30 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
33 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
304 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
28 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
64 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
59 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
328 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
110 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
36 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
70 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 ...