Questions tagged [spfx]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

The ListView has columns added by the SPFx Field Customizer?

I have added a column to the list view using the SPFx field customizer. It's not display in the list view. How can I determine in the onInit() event of the SPFx ListView Command Set if the ListView ...
  • 13
1 vote
1 answer
11 views

Getting webpart panel properties in .tsx file

I have created a basic SPFx webpart. Essentially the I'm making a call to a 3rd party API and getting some values back and then rendering the results on the screen. The .tsx file is below. import * as ...
  • 11
0 votes
2 answers
40 views

From Azure Function (secured by AAD), how to properly detect the caller (the end-user of SPFx WebPart) through the AadHttpClient?

Note: Both Azure Function and the SPFx WebPart mentioned below are written in NodeJS/JavaScript. None of them are in C#. I have an Azure Function (secured by AAD: App Registration) which is being ...
1 vote
2 answers
21 views

What all we need to start working with SharePoint Framework

I am new to SharePoint framework, am not aware which technologies need to be learn to work and develop workflows using spfx. Any suggestions would be appreciated, thanks in advance.
0 votes
0 answers
13 views

using Moment react in an array and then format Date

i want to format a Date (StartDate and EndDate) in Moment React. Unfortunately, it's always giving me an error message. Maybe you can help me! Here is my code so far: this.state.ProjectFilterItem....
0 votes
1 answer
25 views

Call a function dependent on the value inside an array with SPFx and react

I coded a template that pushes values from a SharePoint List into an array. I want to change the image inside the array depending on a value that is inside an array. The value should function like a ...
0 votes
1 answer
36 views

SPFx solution required hard refresh

I have deployed the SPFx solution on SharePoint. Changes are not updated until we hard refresh the page. Need the solution for auto refresh the site page.
  • 45
1 vote
1 answer
62 views

When I display a list form, I want to get the list view ID and item ID

When I display a list form (modern UI), I want to get the list view ID and item ID and register them in the database. What method can I use to achieve this? Please share advise here.
  • 13
0 votes
0 answers
18 views

Altering Default TaxonomyPicker and ListView Component

I am using the ListView and TaxonomyPicker from the SPFx Controls-React and I want to alter the default way both components render from: To: Essentially shrinking down the Filter text input of the ...
0 votes
1 answer
18 views

Open a custom form from New item list button

I'm looking to open a custom New Item form developed in SPFX on click on New Item button in SharePoint List, and on the edit form as well, I want my custom form to be load. How can I implement such ...
  • 886
0 votes
1 answer
32 views

SPFx - Get list items from different site collection where user have access

Link-1: https://abc.sharepoint.com/sites/site-1/ Link-2: https://abc.sharepoint.com/sites/site-2/ Using SPFx, From Link-1 site webpart, I want to get list items from Link-2 site. I tries axios, fetch ...
0 votes
0 answers
17 views

SPFx - create new list field in list in upgradeActions using the SharePoint Framework feature

I've created a Feature to create different lists (automatically created) on the site when someone is adding my SPFx package to their site. This functionality is working just fine. I have used ...
0 votes
0 answers
23 views

PNP/SP not working in team context

I have created the SPFX tab webpart with crud Operation in sharepoint list Not working in Microsoft teams app but this webpart working in sharepoint page because its getting SharePoint context I am ...
0 votes
2 answers
34 views

How to call Azure Functions App from SharePoint Online as the signed-in User (via Client-side JavaScript)?

I have an Azure Functions App (with HTTP API endpoint) which, upon triggered, needs to know the EMAIL ADDRESS of the caller; calling via the client-side (SPFx) JavaScript on the SharePoint Online Site....
0 votes
1 answer
27 views

Help with SPFx and Dataverse

I'm trying to do CRUD functionality on a Dataverse table from an SPFx app. I keep getting the same error: To view the information on this page, ask a Global or SharePoint Administrator in your ...
0 votes
1 answer
51 views

Graph API filter query says "The specified filter to the reference property query is currently not supported."

I am displaying users from certain groups within an SPFx web part for SharePoint Online. If I try to add a filter I get the error "The specified filter to the reference property query is ...
0 votes
1 answer
21 views

What is the best way to shuffle the results that come back from a Graph query?

I have an SPFx web part for SPO which gets the members of a team. What's the best way to shuffle the 'result' data that comes back? EDIT: I have tried this: result = result.sort(() => Math.random() ...
0 votes
1 answer
34 views

I can get M365 user information using Graph but I can't get their profile picture

I have created an SPFx web part (no framework, SharePoint Online) which will show all the members of a given group. It displays their name, email, job title etc ... Is it possible to show their ...
0 votes
1 answer
41 views

SPFx Data Sources besides SharePoint Lists

Besides using a SharePoint list, are there other easy to use options to use as a data source for SPFx. I know some use Azure but that has an extra cost with it. I have found very little in how to use ...
0 votes
1 answer
35 views

Get other columns for a React Accordion Web Part?

Im using this tutorial https://www.c-sharpcorner.com/article/how-to-use-pnp-react-accordion-control-in-spfx/ to display items from an SPO list in a React Accordion. It's hardcoded to use the columns &...
0 votes
1 answer
43 views

SPFx web part to get data from Azure AD - Getting some values but not others

I have an SPFx web part and I wish to display the users within a group. I am trying to get their Display Name and other data (Email) but I get null for their Display Name. I do get data for their ID (...
0 votes
1 answer
93 views

Trying to get all the members of an M365 group using SPFx

I am trying to use the code here in order to get all the members in an M365 group. ¨PnPJS Graph : how to list all members of a Group I am getting an error Uncaught (in promise) Error: There is no ...
0 votes
1 answer
39 views

Custom SharePoint online page flicker on load SPFX web parts

I have created an application customizer extension and put my custom header and footer in that extension which loads fine. I had to hide the OOTB ribbon and left bar as I wanted to have totally ...
0 votes
1 answer
20 views

Display order for multiple installed SpFx Extensions bottom Placeholder

I have 2 seperate extensions which are rendered in the bottom placeholder. Both the solutions are different and are activated. Extension 1 : Having footer details which is more of rendering of static ...
  • 63
0 votes
0 answers
18 views

Adding SPFx Teams Tab to a Shared Channel

Is this feature currently supported? Support for standard and private channels appears to be working out of the box, but the option is not available for shared channels. I have not created a developer-...
  • 1
0 votes
3 answers
43 views

SPFX Build Failed with " Cannot find module '@fluentui/react' "

I am trying to build SPFX(React Framework) with Fluent UI. I am not able import any Fluent UI components. VS code failed to build with error : Cannot find module '@fluentui/react'
  • 416
0 votes
1 answer
30 views

How can we add custom button in Microsoft team

Is there any way to add a custom button in Microsoft team channel to open a popup where we can do the insert operations with SharePoint list? Below is screenshot example:
0 votes
0 answers
29 views

SPFx React Webpart URL doesn't point to hyperlink column/url value within event item

I've been tryin to copy/change an existing sample from github pnp. Goal is to add a hyperlinked "Meeting Agenda" within the card itself. The sample I've copied changed is here: https://...
0 votes
1 answer
50 views

Is there any way to hide weekends days from SharePoint Modern Calendar?

Can someone please guide me how to hide weekends from modern calendar. Options that I could find are related to classic calendar in SharePoint.
  • 543
0 votes
1 answer
30 views

Slack in Sharepoint Online

I want to integrate opening Slack in Sharepoint Online. How can I add a webpart that will open Slack in the iframe and add a link to the group / channel in the path, which will be taken from the ...
  • 1
0 votes
0 answers
57 views

Web part is not available in hosted workbench despite gulp serve running OK

I spent already whole day googling and trying to implement googled solutions but nothing worked so far... (and yes - I tried many solutions recommended from threads I found here on stackexchange) ...
1 vote
2 answers
23 views

CSOM API how to find claims accounts unassociated with a site

I'm trying to find claims accounts that are not associated with a site. These would be "{SiteName} Owners" and "{Site Name} Members" users that are automatically created in ...
  • 13
0 votes
1 answer
19 views

Play video in full screen and hide Header menu bar in SharePoint online modern site

I am creating a landing page in SharePoint Online (modern site not classic). I have below mention client's requirement. Once user hit the SharePoint home page, it should show only the video in full ...
0 votes
1 answer
74 views

SharePoint modern calendar

Is there any way to view modern calendar by day only so it shows the time slots just like classic calendar shows when we click view by day? Do I need to create SPFX calendar from scratch showing ...
  • 543
0 votes
3 answers
40 views

SharePoint: how to put the box in the header area or navigation?

Anyone know how can I put the box in image in the navigation area without using SPFx just CSS only.
1 vote
2 answers
50 views

How can I add a image/shape in navigation bar?

I need to put shape or image that can when it scroll up or down it will never move in its position and it float it until navigation to footer. Like this one a heart that fixed in every part of the ...
0 votes
1 answer
18 views

Restrict Sharepoint extension to be used on one specific list

There is an extension (custom ribbon) button on top of the list, that is connected to third-party apps, updating the list where you run it. It's needed to restrict the extension to be used only in the ...
0 votes
2 answers
48 views

Feature is not added to site when I install an SPFx app with a list view command set a second time

I have an SPFx extension deployed to my tenant app catalog. The app implements a list view command set and in package-solution I set skipFeatureDeployment to false so that site owners can add the app ...
  • 1,254
2 votes
1 answer
73 views

How to put image and link under PropertyPane Description field for the web part in SPFx?

I was trying with using React.CreateElement in the description field and changing the type for the description field from string to IPropertyPaneField in the interface, but this declaration exists in ...
1 vote
1 answer
62 views

Using Blazor as the framework to develop SPFx webparts

I am wondering if someone knows if this is being attempted anywhere. Currently React seems to be the one appearing most in my searches. I have learned and developed on Microsoft Blazor yet I do not ...
  • 11
0 votes
0 answers
21 views

Unable to load external scripts when user navigating between pages with sharepoint extension

We have sharepoint extension which load js files on page load/refresh working properly however when user navigate between news feed pages partial loading script does not work.Even I have used ...
  • 11
0 votes
0 answers
22 views

Build SPFX@1.10.0 error

Error information: [17:20:51] Error - [tsc] node_modules/antd/lib/_util/type.d.ts(8,83): error TS1005: '?' expected. [17:20:51] Error - [tsc] node_modules/antd/lib/_util/type.d.ts(8,95): error TS1005: ...
  • 1,914
1 vote
0 answers
63 views

Is there any way that I can use Application Customizer extension in whole site and only for one page?

I have created a Application Customizer extension of permission for single page URL. Is there any way that I can use this extension in whole site?. If yes, how to do it?
0 votes
0 answers
55 views

Rich Text editor in React SPFX webpart in SharePoint online

I am trying to use the Richtext control from @pnp/spfx-controls-react. The control loads properly but I am not able to resize the image and even I am not able to apply custom css the Rich text control....
  • 21
0 votes
0 answers
23 views

Teams Tab app with SSO and SharePoint Redirection via teamslogon.aspx

I have Teams app with SSO settings in manifest like this "webApplicationInfo": { "id": "25a08858-151f-477d-8fff-e72c9254ac22", "resource": "...
1 vote
1 answer
23 views

Create Custom Master Page for "SharePoint Online"

I'd like to know how to do it. Is it possible to create such using the SharePoint Framework (SPFx)?
0 votes
1 answer
29 views

SPFx - Ask individual consent to use Graph API

On a webpart I would like to show the current user calendar events, but I don't want to ask for an Admin to approve the API permission for everyone first. Is there a way to, when a new user hit the ...
0 votes
1 answer
14 views

SPFx remove provisioned lists on uninstall?

Say I have an SPFX app that provisions a list, then user uninstalls the app. The list remains. Is there any way to remove provisioned assets on uninstall of an app? *Pnp.powershell not an option ...
  • 5
0 votes
2 answers
42 views

Adaptive Cards Cannot add description property

I am trying to build Image Adaptive Card for the first time, I thought "Description" Property can be added how it can added in the normal web part SPFx. I was wondering how to add "...
0 votes
0 answers
19 views

Uncaught TypeError: Cannot read properties of undefined (reading 'context') in spfx

When I am checking my published document that time I am facing this problem, before this it was running fine.

1
2 3 4 5
36