The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.
Questions tagged [spfx]
975 questions
-1
votes
1 answer
How to get users current title using sphttp (Not sp.web or pnp) spfx
Can someone give me the code to get the current logged in user for a spfx webpart. I don't want pnp.sp or sp.web please, I want to use spHttpClient etc.
I cannot find the basic code ANYWHERE on the internet. A link will do.
Regards,
T

NightTom
- 418
- 15
- 37
-1
votes
1 answer
how to get teams context in Spfx react solution
How to get teams context in Spfx react solution?
Here is the method to get ms teams message using msgraphclientFactory

Shyam
- 1
- 1
-1
votes
1 answer
How to create custom masterpage in SPFX classic view
I have created SPFX Project and created Masterpage in classic view and hosted it already in SharePoint online and when I add my SharePoint framework Web parts
to the master page after 2 days cannot edit anymore on the save or do any actions from…

Sharepoint
- 3
- 2
-1
votes
1 answer
Spfx for creating new draft email with attachment
I need to create spfx button that will upload selected library item/document to new draft email as an attachment. I assume this needs to be done via Ms Graph API (pnp msgraph). Does anybody have samples or suggestions on how can this be done?

Pecky
- 3
- 1
-1
votes
1 answer
PnP — Add a claim value to a SP Group using PnP powershell
I was hoping to find an example where i could add a particular custom claim value to a SP group using PnP PowerShell. Basically do what is done below using PnP PowerShell
$ClaimValue = $_.ClaimValue
if ($_.ClaimType -eq $ClaimTypeSchema.GroupSID)
{
…

user3799810
- 31
- 7
-1
votes
1 answer
Can a guest user (Azure AD B2B) call the graph from a sharepoint page (using say an spfx webpart)
Now that spfx 1.6 has launched we have support for calling azure ad secure APIs such as Microsoft Graph and Azure Functions.
I've used the samples from https://learn.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient to create a simple page…

finarne
- 51
- 6
-1
votes
1 answer
Re call api when property in SPFX property pane is changed
This is possibly a really stupid question but here goes.
I've got a dropdown field in my Property pane that is populated with all lists from the current site. This is working no problem.
When I change the drop down I populate a property with the ID…

Truezplaya
- 1,315
- 1
- 13
- 26
-1
votes
2 answers
I am getting error while installing knockout using npm - Unmet peer dependency
I am installing knockout using node.js and I am running following command
npm install knockout
but I am getting these errors.
UNMET PEER DEPENDENCY underscore@^1.8.3
npm WARN knockout-validation@0.1.1 requires a peer of
underscore@^1.8.3 but …

DvG
- 634
- 5
- 10
-2
votes
0 answers
Looking for a solution to a dynamic webpart to display view items
we need a dynamic webpart, which needs to take two values(List name, List view).
Make sure webpart need to editable, for two values, 1 for List name, 2 for list view name,
make sure all the columns and columns data under view(configured under list…

kmurali krishna
- 17
- 6
-2
votes
2 answers
BaseApplicationCustomizer throws errors
So today I was updating one of our SPFX extensions to use the latest spfx framework (1.16) with node (16.13) and after finishing my updates I got the following inside my code:
I am not exactly sure why these are not coming in, I suspect the newest…

Todd Coulson
- 14
- 6
-2
votes
1 answer
CSS @media only screen query not working under 360px
I am trying to use CSS to style the mobile responsive Webpage. When I resize chrome to 360px, the styles shows its detecting 432px.
When chrome is reduced to 320px, the content inside the li, div is empty.

Random I.T
- 121
- 1
- 10
-2
votes
3 answers
States in React, how to preserve the original`?
I am working in a SP framework application that read, group and filter data from a list.
To do that I have a method in the app that get called from an onclick eventhandler.
This method contains just a switch to check what other method needs to be…

Americo Perez
- 95
- 1
- 4
- 17
-3
votes
2 answers
How to call a function after promise
JavaScript noobie here. Lacking knowledge of an important design pattern.
this.getEventData(); < How can I call that function after the promise is resolved? So then I can remove the noobie setTimeout ?
public onInit(): Promise {
return…

BennKingy
- 1,265
- 1
- 18
- 43
-3
votes
1 answer
Where can i find complete knowledge on SPFx with ReactJS?
Where can I find complete developing knowledge on SPFx with ReactJS ?
As I am new to this technology. I am having knowledge on SharePoint onpremise and online.
SharePoint Customization by Using SPFx with ReactJS
Thanks in advance

Kumar
- 1
- 1
-3
votes
1 answer
Best free or paid video training series for learning Sharepoint 2016 from a Beginner/Intermediate level
I am a web developer who will be starting Sharepoint development and hasn't used Sharepoint much at all from an end user or developer side of things. I am looking for a training class to ramp up on it so I can be a better developer and make more…

kyleb
- 1,968
- 7
- 31
- 53