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.

Filter by
Sorted by
Tagged with
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
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
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
2 answers
20 views

Issue when packaging a solution

When I am packaging a solution I am facing this error when I run the command gulp bundle -ship.
0 votes
1 answer
24 views

Error in Spfx solution at creating time

When i am creating solution in spfx with react that time i am facing that problem.
1 vote
1 answer
33 views

How to Remove the Current User email from a dropdown list [closed]

const getDropdownDataFromMaster = (): void => { let UserEamilArray = []; let userEmail = props.context.pageContext.user.email; console.log(userEmail); console.log("heyyy&...
0 votes
0 answers
14 views

Creating Item in spfx and change status in list

var isApprovalStatus; var valDmsId = []; const isapproverReviewer = () => { console.log("approver reviewer get function "); for (let i = 0; i < documentIdArray.length; i++) { //...
1 vote
0 answers
126 views

SPFx extension customizer JS files is not loading on production tenant of my SharePoint Online site

I have two different tenant, one is for development things and another for production. I have developed one SPFx extension and deployed on development and production site. It was working perfectly ...
0 votes
1 answer
21 views

Trying to set up SP Framework - Can't get past Command Prompts

I'm trying to take the plunge into getting SP Framework set up so that I can add the modern script editor (frustrating that it isn't an easy process to set up). I've followed numerous tutorials, but ...
  • 197
0 votes
0 answers
75 views

Store or Update an object array in WebPartProperties from child component - SharePoint Framework (Spfx)

i have a child component in a SPFx WebPart where a build up an object array containing People objects. This array is build up when the page/webpart is in edit mode. After page save I wont to pass the ...
0 votes
1 answer
77 views

SharePoint Online - Social Media Integration

I have a requirement to allow employees to share "News Posts pages" to their social media accounts (Facebook, LinkedIn, and Instagram) from our intranet SharePoint Online Site. In addition, ...
  • 319
0 votes
1 answer
214 views

What is the latest version of "sp-pnp-js" that is compatible with SPFx v1.4.1 (On-Premise)

Does anyone know which is the latest version of sp-pnp-js that is compatible with SharePoint Framework v1.4.1 for SharePoint 2019 On-Premise? Тhanks in advance
  • 2,028
0 votes
0 answers
17 views

Can a provider-hosted SharePoint Add-In be re-written to use SharePoint framework? [duplicate]

I'd like to take an existing provider-hosted SharePoint Add-In and convert it to use SPFx. However, it is unclear what the impact would be. For instance, the management of Client ID/Secret which used ...
0 votes
1 answer
20 views

how to get the data of discussion list in spfx using React js with bootstrap i have already create Discussion board list and UI for Discussion Board

This is my Discussion Borad List and other is my UI of Discussion Borad SO how can i get the data of the List of Discussion borad to UI
0 votes
1 answer
341 views

SPFx workbench.html is not generated

I'm trying to setup a local development environment for SharePoint Framework to develop web parts. I've followed the microsoft guides for setting up SPFx dev environment and build your first web part ...
  • 3
1 vote
1 answer
109 views

How to deploy Command Set Extension for Site Pages Library

I would like to know how to specify location of ListViewCommandSet Extension in "Site Pages Library" I have set ListTemplateId="100"to show in custom List View and ListTemplateId=&...
1 vote
1 answer
209 views

Deploy correctly SPFx v1.4.1 package in SharePoint server 2019 using gulp

I would like to know how to deploy correctly SPFx package in SharePoint Server 2019 on-premise using gulp and sppkg. It seems that SharePoint server doesn't not work like SharePoint online and it ...
1 vote
1 answer
112 views

deploying spfx .sppkg package in sharepoint 2019 doesn't work but it work fine using debugging url

I'm troubling with issues when trying to deploy Spfx command Set extension using sppkg in Sharepoint Server 2019 It work fine using debug url after running gulp serve but when i moved to deploy it ...
1 vote
1 answer
107 views

Static IP address for custom SPFx App and SharePoint Online

I have a custom web part that I'm building using SharePoint Framework to go on my SharePoint Online tenant. The application will be hitting a third-party API to fetch data. The complication is that ...
  • 267
1 vote
1 answer
93 views

spfx-angular-elements project working correctly on workbench but not working on sharepoint page

I have created a spfx-angular-element demo with reference to the below link: https://gonadn.medium.com/spfx-with-angular-element-crud-operations-using-pnpjs-5a8a18ed6e43 It is working correctly in the ...
0 votes
1 answer
49 views

Is there any option for SharePoint global navigation which is compatible with SharePoint Server 2013 and SharePoint online?

I'm currently using SharePoint 2013 and want to build a custom global navigation for the whole farm which is also migratable to SharePoint Online. In SharePoint Online i use the modern environment. ...
  • 1
0 votes
1 answer
100 views

Fetching the Outlook Task's Data into Webpart using Graph Api call

I am using render function to make Graph Api call I have created a function _outlookTask to fetch the outlook task's data How to make Graph Api call with Selecting the HTTP method as GET and then, ...
0 votes
1 answer
154 views

Fetching the data through Graph API in the webpart using sharepoint framework

[I am trying to fetch my email messages through Graph API into the webpart in sharepoint framework] In the webpart Not getting the details of my emails through Graph API Error : Cannot read property ...
0 votes
1 answer
58 views

How to redirect from a TaskList to a sitepage in sharepoint Spfx

This is my Task list, how to redirect to any Site page on the click of the Task Name field? When we are clicking on any Task Name field's value, the default form is opening as shown below: Instead ...
0 votes
0 answers
176 views

Tag Picker in SPFx

I am trying to use the FluentUI Tag picker on https://developer.microsoft.com/en-us/fluentui#/controls/web/pickers for one of my projects Being a newbie , I am experiencing challenges implementing ...
  • 37
0 votes
1 answer
4k views

Getting Invalid hook call Hooks can only be called inside of the body of a function component with SharePoint Framework Template

I get this sp-webpart-workbench-assembly_default.js:26401 [1599066762186][OtherGlobalError.window.onerro] Invariant Violation: Invalid hook call. Hooks can only be called inside of the body of a ...
  • 2,140
1 vote
1 answer
146 views

SharePoint Online Workbench layout much different from deployed .sppkg webpart - Using React

I'm using SPFx/React to create a simple custom form. Using Fluent UI grid, controls, etc. and it looks fine in the dev workbench area, but as soon as it's deployed the layout is completely ignored. I ...
0 votes
1 answer
1k views

SPFx app not showing up in the webpart list

As I am new to SharePoint Framework, I am trying to update an existing web-part (updated the version in package-solution.json). Updated .sppkg file in app catalog (overwrite), shows new version number....
0 votes
2 answers
2k views

Unable to remove left navigation from a SharePoint Page

I have a SharePoint Online page created with a template, which I cannot remove the left navigation pane from. (I can edit the list of links, but I want to remove the whole pane completely). Ideally I ...
0 votes
2 answers
8k views

How to filter the retrieved items using a pnp-js-core REST call to a SharePoint list

As I am new to Sharepoint framework , I am trying to filter the retrieved list items from sharepoint list. Please find below code: pnp.sp.web.currentUser.get().then(function(res){ var userEmail = ...
0 votes
1 answer
45 views

How to pad a number with leading zeroes using No javascript framework version in SPFx webpart?

As I am new to Sharepoint Framework, I am trying to generate request ID for the request form using the pad function for adding leading laeding zeroes using No javascript framework version in SPFx ...
1 vote
1 answer
20 views

Error "This tab is not supported on your mobile" on adding webpart to Microsoft Teams when login through mobile

I have synced the spfx webpart with Microsoft Teams, it is working fine on the system but when trying to open the tab through mobile it is giving me an error "This tab is not supported on your ...
1 vote
1 answer
1k views

How to use people picker control using sp-pnp-js( Pnp-JS-Core) library and save users selection in Person or Group type column in Sharepoint List?

As I am new to Sharepoint framework, I wan to know how can I use the people picker control using sp-pnp-js library and save the users selection in Person or Group type column in Sharepoint List.... I ...
0 votes
1 answer
875 views

SharePoint framework to sync network folder

Can I use the SharePoint framework to synchronise files from a network folder to a document library? If not the framework is there a way to host some service that will monitor a network drive and ...
  • 101
1 vote
1 answer
981 views

Getting warning messages : Warning - [sass] The local CSS class 'min-chart' is not camelCase and will not be type-safe

I am using third party css in SPFx. When I am building it, SPFx is showing me lots of warning messages : I am using Windows 10 / SPFx 1.11.0. Please let me know how to disable these warning messages. ...
2 votes
1 answer
282 views

Configurations in SPFx Extension for CommandSet, Application Customizer and FieldSet

I have created a solution for Sharepoint Online which needs some confiugration like clients website URL. we are using all the three types of extenstion Command set Field Set Application Customizer I ...
0 votes
1 answer
29 views

What is the purpose for App URL for on-premise SharePoint?

We are using SP2016 on-premise. Patch is deployed so that I can work with Spfx. I followed this MS document (Configure an environment for apps for SharePoint Server) to configure any App domain ...
  • 4,038
0 votes
1 answer
272 views

Is SPFx client web part durable? Is this good approach to develop web pages to publish in SharePoint online (Office 365)?

I have some dynamic pages in my intranet website (CRUD operation plus search/filter). I have office 365 SharePoint online version. I want to develop client web part using reactjs and restAPI to work ...
0 votes
1 answer
232 views

REACT warning when trying to render table

I am new to REACT and I am trying to render my SharePoint list data in a table onto a SharePoint page. I am able to render successfully but then I get the following warning in the console. react-dom....
  • 211
1 vote
2 answers
30 views

How do I develop a completely custom portal/website that has rich designs in SharePoint?

I am required to develop a fully custom knowledge management portal in SharePoint - where different team members in a project can login, ask directed questions, edit their profiles, contribute ...
0 votes
1 answer
3k views

How to best implement pagination for a spfx web part displaying a list of links?

I have a web part that displays a filtered list of links based on the logged on users profile properties. Its working well, but I cannot work out the best way of adding pagination. The list is never ...
0 votes
0 answers
184 views

How to print the selected value of Dropdown

I would like to know if there is a way to print the selected value of a Dropdown menu that is inside the Property Pane in SPFX. Like, in my case, how to make it print with a console.log "Ascending" ...
1 vote
1 answer
218 views

Application Customiser doesn't work on SharePoint homepage 2019 on-prem

I have a very basic application customiser that adds a custom css file to the page, hiding certain elements like the "Get the mobile app" button. The app is installed in the mysite host app catalog, ...
0 votes
1 answer
46 views

Get column value, not ID, from a look up column

thank you for reading; my problem is: I want to retrieve the values of the column "GroupWithPriority". That column is a Look Up from other list. When I try to get the value, all I get is "...
0 votes
1 answer
313 views

Spfx source files from spkg

Inlost my source file of spfx webpart. I only have spkg package can i extract source field from spkg please help mei it's urgent
  • 97
0 votes
0 answers
390 views

I keep getting 404 not found on gulp serve?

Request URL:https://localhost:4321/node_modules/@microsoft/sp-property-pane/node_modules/react/dist/react.js Request Method:GET Remote Address:127.0.0.1:4321 Status Code: 404 I modified a file ...
  • 75
0 votes
1 answer
484 views

SPFx JQuery Dialog button click does not find public function

I am new to TypeScript and SPFx development. I have a jquery UI dialog box and a public function in the same class that makes some MSGRAPH calls after the button has been clicked. The button click ...
  • 103
0 votes
2 answers
2k views

SharePoint 2019 SPFx application customizer - site collection wide automatic deployment

I am looking forward for some help. I developed an application customizer to inject JS and CSS. I am using the "includeClientSideAssets": true to get my stuff within the sppkg. In addition to that ...
2 votes
1 answer
126 views

Is it possible modify the megamenu cascading dropdown spacing?

I'm looking for a way to modify to spacing between the section titles on the megamenu? I'm thinking that this could be done modifying the css scripting, but I'm not that skilled with the web-dev side ...
  • 55
0 votes
1 answer
100 views

SharePoint Development with SharePoint Framework

We have SharePoint 2019 at workplace. I saw the documentation in MS https://docs.microsoft.com/en-us/sharepoint/dev/ about getting started with SharePoint Development. Do I have to set up a ...

1
2 3 4 5