Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
19 views

SharePoint 2019 - Web API

Goodnight, I have a WEB API application with windows authentication, and I have an SPFX application in sharepoint 2019. Everything is on premise. How can I authenticate the api with the current ...
1
vote
0answers
19 views

SPFX Sharepoint 2019

I created an app in spfx on sharepoint online and connect to a app service use AadClient. It's possible to do the same in SharePoint 2019 On Premise and On Premise Api?. Thanks
1
vote
0answers
13 views

SPFX- Lookup column value

I'm retrieving data from a SharePoint list and I'm facing some issues while getting values from lookup column. I was able to successfully pull in the 'Title' column which is a single line of text, but ...
1
vote
1answer
23 views

SPFx webpart with Bing Maps

I have SharePoint 2019, and I am trying to create a webpart that will display Bing Map, I tried this on a react app created using create-react-app, and it works fine. Then I took the code, and added ...
0
votes
0answers
12 views

Embed UNC-Path to printer into SPFX webpart

I just started with the first tutorials watching about SPFX. My final goal would be to have a webpart and a button to connect to a network shared printer. The path locally would be \\server1\printer1 ...
0
votes
1answer
20 views

SharePoint framework unit testing pnp

How can I test with jest a pnp function? How can I mock the webpart context and pnp responses? I'm using spfx webpart, pnp-js-core and jest for unit testing Thanks.
0
votes
0answers
21 views

PictureThumbnailURL managed property returns pixelated roll up image and published image

I have a search function that uses the managed property "PictureThumbnailURL" to return a rollup image and published image. However, these images are very pixelated and low quality. Is there any way ...
0
votes
0answers
15 views

Is it possible to access an on-premise Active Directory authenticated REST-API from SPFx solution running in SharePoint 2019?

I know that we can call Azure AD secured APIs (e.g. Azure Functions, or API Apps running in an Azure App Service) from SPFx solutions running in SharePoint Online, as described in these scenarios: ...
0
votes
0answers
20 views

Error in webpart after upgrading to SharePoint Framework 1.8

I have just upgraded to spfx framework version 1.8. When I try to add the webpart to the page, I get this error Original error: Error loading https://component-id.invalid/f2f8e00f-ef2a-4909-b24a-...
1
vote
0answers
20 views

Web api - Http 302 - SPFX

Good afthernoon I have a project in sharepoint framework and a Web API project with Azure AD authentication. In the API I have a controller with Autorize Attribute. If the WEB API runs in localhost,...
0
votes
1answer
29 views

How do I add custom dropdowns in Command Bar in sharepoint modern UI

I am trying to add some of the previous ribbon functionality in the command bar for modern sharepoint UI and stack all of them in separate dropdowns. Any feasible solution will be really helpful.
1
vote
0answers
30 views

SPFX Webpart with Dropdown don't work on Classic pages

I currently have a spfx web-part which contains a dropdown, when I add it to a classic page and try to use the dropdown when the SharePoint ribbon displays the Format Text tab, the dropdown keeps ...
0
votes
0answers
14 views

How to enable SPFx Extension Listview Commandset only on a specific list

As the title says.. Is it possible to show the command only on a specific list and its views?? Because my extension has operations involving only a specific list..
0
votes
0answers
15 views

How to retrieve all the SharePoint surveys I didn’t answer yet?

How to retrieve all the SharePoint surveys I didn’t answer yet using Rest API?
0
votes
1answer
18 views

Prevent Dialog from closing after pressing OK - SPFX Extension Listview Command

I created a spfx extension that shows a dialog using Dialog.alert(`Are you sure you want to open Quarter ${selectedItem.Quarter} for Period ${selectedItem.Period}?`).then(() => { this....
0
votes
1answer
31 views

Can we create a list definition in SPFx?

Can we create a list definition in SharePoint framework?
2
votes
1answer
29 views

Can I convert an SPFx solution that works only on SPO to work on SP2016, 2019 and online without creating a new solution?

Can I convert an SPFx solution that works only on SPO to work on SP2016, 2019 and online without creating a new solution? and what are the differences between the solution the only works on SharePoint ...
0
votes
0answers
11 views

How can I connect to on-premises TFS using visual studio code?

How can I connect to on-premises TFS using visual studio code? Is that possible the same way as visual Studio?
0
votes
0answers
13 views

What parameters need to be listed for HTTP Request

I need assistance to determine what the 'Request Body JSON Schema' should be, to allow Flow to trigger via HTTP request to pass the List Item ID as a query string parameter. I am working on a list ...
0
votes
2answers
28 views

How to retrieve context in SPFx 1.1.0?

Good morning, I need to create a spfx element to sharepoint 2016. the project dependencies are: "react": "15.4.2", "react-dom": "15.4.2", "@types/react": "0.14.46", "@types/react-dom": "0.14.18", "@...
0
votes
1answer
24 views

Can we package the branding files, custom masterpage and custom layouts and upload them to SharePoint using SharePoint framework (SPFx)?

Is it possible to package the branding files (CSS, JS, images, ..), custom masterpage and custom layouts and upload them to SharePoint using SharePoint framework (SPFx)?
0
votes
1answer
21 views

SPFx API calls, getting around threshold when getting data from two related lists

I'm currently trying to create a custom web part to display list items in an easy to read format. This web part essentially uses the REST API to grab the items and put them into a nicely formatted ...
0
votes
1answer
26 views

Loading external JS sources prior to any other scripts in SharePoint Framework

Deploping on SharePoint Modern, I am using this React Content Query Web Part and added two of them on the page. One of them will need slick.js and another one is using masonry.js, both of which ...
0
votes
0answers
31 views

List recently access documents

I am trying to develop a web part the lists the logged on users recently accessed documents, as per the home page of www.office.com, and the recent documents tab. I originally thought this ...
2
votes
1answer
49 views

Replacement of QueryString web part in SharePoint Modern UI

Is there any replacement of QueryString Web Parts in Modern UI? SPFx is the last option.
0
votes
1answer
20 views

How to trigger Microsoft Flow using SPFx Extension's ListView Command set

As the title says, How to trigger Microsoft Flow using SPFx Extension's ListView Command set? Has anyone tried this and get it to work? Please guide me to achieve this.
1
vote
1answer
57 views

Update List Item SPfx not working

Below is the code, which is not working, shows below error An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartObject' node was expected. const body: string = ...
0
votes
0answers
13 views

SPFx Web part not retaining the Property values

I have a SPF'x web part (SPF'x V1.1 as its for On premise) which has 2 string type of properties. It was working fine in my QA environment. But in Prod, The properties not retaining the values. I have ...
0
votes
0answers
14 views

Athenticate and Authroize External API

I am writting a .Net API, which will be consumed by a SPFx(Sharepoint Online) webpart. I need that API can authenticate and authorize via CSOM, because some of methods of these API need to be ...
0
votes
1answer
21 views

Document Set update properties

Hi i am trying to create documentset and set the properties from a webpart. I can create the document set private async _CreateFolder(webUrl,listName,folderName,folderContentTypeId,folderPayload, ...
0
votes
1answer
25 views

How to return string from sp pnp js request?

I need help with how I can return a string from a SP PnP js request? I want to display the string displayName in the console log on the last line. The result.Title is a string. public static ...
0
votes
2answers
34 views

How to clear Office-ui-fabric-react fields after object has been added to list?

I have a simple list that gathers info from two text fields, a drop down and a people picker. I am able to submit to my custom list. I have set the state back to the defaultValue, which I have defined ...
1
vote
0answers
30 views

How Can I add a Content Type to a Document Library using SPFx

I have a Content Type for a Document Library that resides in a Content Type Hub. It's available on the team site. Now when a Library is provisioned, I would like this content type to be added. Can ...
2
votes
1answer
44 views

How to find SharePoint Version & SPFx can be used?

In order to use SPFx, it mentions that "SharePoint 2016 Feature Pack 2" is required. I have SharePoint 2016 On Premise. But how to find out what version and feature pack is currently installed. I ...
1
vote
2answers
34 views

Issue while retrieving data in SPFX

I am trying to get data in SPFx using REST and also need to use CAML for making the query. CAML is required as I want to filter based on certain groups the user is present in, so giving that up is not ...
1
vote
1answer
59 views

Problem with rendering a React component in another component for SPFX

This is my first post here, I guess :) I am writing because I have a task to make a Shopping app which should be made in SharePoint Framework and use React as a framework. My current problem is ...
0
votes
1answer
25 views

Is it possible to change the language (strings) of a SPFx webpart inside the webpart?

I have a SPFx webpart with "de" and "en" locales and want to change the language with a button in the webpart. How can i change the locales? SPFx webpart on a modern page.
0
votes
1answer
42 views

Access other Site collections in SPFx web parts

We have a requirement to convert one of the existing provider hosted app functionality to spfx webpart. The provider hosted app implemented using App only calls to access other site collection in the ...
0
votes
0answers
19 views

2016 - SPField.FieldRenderingControl equivalent to CSOM or JSOM

Using the Microsoft.SharePoint, I can render SP Fields in custom application page using the below server side code. BaseFieldControl editControl = field.FieldRenderingControl; editControl.ID = field....
0
votes
0answers
25 views

Aditional properties not allowed SPFX webpart error

I'm getting this error when I use gulp serve Blockquote Error: #/localizedResources (A set of localized resources, to be d...) Additional properties not allowed: v3WebPartStrings Error:...
1
vote
3answers
96 views

Retrieving column fields from SharePoing list using sp-pnp-js

I have a list. I want to retrieve the fields to see how many column are there in my list. For example, my list name is TestList, I have created 5 columns of different datatypes. I want to retrieve ...
3
votes
1answer
127 views

Customize Modern SharePoint listform

Currently i am working on modern SharePoint and i have one requirement to create purchase order form. To create Purchase order form, i have 2 list. One is for vendor and other detail and another ...
4
votes
1answer
133 views

Including React Kendo Grid in SPFx web part throws warnings during build

I have got a kendo grid built into a SharePoint SPFx web part. All works great in my local work bench however when I go to build the kendo components give lots of errors. Seems to be a known issue ...
2
votes
1answer
70 views

SPFX 1.7.1 - Full page apps - How to configure

So i've been away from SPFX for a while since they were still using the older version of React and i've got a question. I can see that they added a developer preview of "Full Page apps". How can you ...
2
votes
1answer
56 views

MSGraph Permissions

I am trying to allow an app to get a user's manager. According to the documentation I need User.Read.All permission: So in my SPFx, I added the request: "webApiPermissionRequests": [ { "...
1
vote
1answer
48 views

SPFX not showing webpart properties in modern page

I have created a new spfx webpart from yomen generator. and deployed to sharepoint. It is working in the classic sites and workbench page. But in the modern site, modern page. it is not showing web ...
0
votes
1answer
54 views

Fetching modern sharepoint page comments and likes count using search api

I can't seem to find the correct managed property for both modern Comments Count & Likes Count at all as all managed property within schema returned 0 counts. I would like to avoid additional ...
0
votes
1answer
29 views

How to run in local enviroment this solution SPFX on Sharepoint local enviroment

I find out some solutions on internet, but i don't know how run this solutions on Sharepoint local enviroment. Here is a link. Please help me.
0
votes
1answer
54 views

Question regarding Typescript version in SPFx

I have few SPFx related queries as mentioned below. What is the current version of typescript in SPFx v1.71? if it is not the latest version then is there any plan to upgrade? It will be great to ...
2
votes
1answer
50 views

Create an excel/word document using SPFX web part in SharePoint Online

I have one requirement about preparing excel and word document based on SharePoint list data and download it for user in SharePoint Online using SPFX web part. My question is: Can we create SPFx web ...