Questions tagged [spfx]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

(Regarding error AADSTS65001) AAD and SPFx: How to manually set (reset) the "servicePrincipalId" of the AadHttpClient via SPFx Webpart?

I'm developing a SPFx Webpart (using Nodejs) which implements AadHttpClient that calls an API (an Azure Function) which is protected by Azure AD. As far as I understand, after the AadHttpClient object ...
1 vote
1 answer
48 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
14 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
16 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
31 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
15 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
20 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
28 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
25 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
24 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
31 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
39 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
34 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
33 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
85 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
35 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
16 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
15 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
36 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
28 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
28 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
42 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
27 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
46 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
22 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
17 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
53 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
37 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
45 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
36 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
66 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
59 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
18 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
20 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
0 votes
0 answers
51 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
43 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
19 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
21 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
24 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
40 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.
0 votes
1 answer
60 views

trying to bundle https://github.com/FaganSC/spfxModernCalendar will raise this error "Error: Cannot find module 'webpack/lib/ParserHelpers'"

I want to run the following command gulp bundle --ship on this SPFX @ https://github.com/FaganSC/spfxModernCalendar. But i got those error Error: Cannot find module 'webpack/lib/ParserHelpers':- D:\...
0 votes
0 answers
28 views

I am using the js-modern-calendar but is there a way to add eventsdirectly from the calendar view

I am working on this SPFx web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/js-modern-calendar .. but can we add the ability to go to specific day and add events? Thanks
0 votes
1 answer
22 views

I am using the js-modern-calendar but I want to change the background color for Today block inside the calendar

I am working on this SPFx web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/js-modern-calendar but I want to change the background color for Today block to different color: How I ...
0 votes
1 answer
31 views

Modifying button colors via SPFx is not being reflected

I am working on this SPFx web part @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/js-modern-calendar. Now when I click on a event inside the calendar, I will get this dialog box with a ...
0 votes
0 answers
34 views

How to download selected multiple files as zip in SPFx development?

i am creating custom document library web-part, with the multiple file download functionality similar to the out-of-the box feature. how can we do that?
  • 175
0 votes
1 answer
485 views

Couldn't add this app. Check your network connection and try again

I am new to SharePoint and developing web part solutions using SPFx with react. I have deployed the solution in the app catalog & when I was trying to add the app in the SharePoint App store, I am ...

1
2 3 4 5
36