Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 75173

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

0 votes
1 answer
2k views

Provisioning SPFx WebPart assets: adding a page with your webpart embedded to it

As far as I can see it should be doable to create a package which can automatically, once the app is added to your site, to create a page and embed the webpart on it - as described here: https://githu …
Lachezar Stefanov's user avatar
3 votes
2 answers
4k views

Display a SPFx web part within a popup on a modern page

I am looking for a way to display an SPFx web part within a pop-window in a way, similar to using the modal window ( as descrbed here: https://www.ericgregorich.com/blog/2013/12/30/open-a-page-in-a-sh …
Lachezar Stefanov's user avatar
1 vote
1 answer
2k views

Calling MS Graph API: An error as soon as declaring the MSGraphClient

I have imported the MSGraphClient in my project using the following statement: import { MSGraphClient } from '@microsoft/sp-client-preview'; I have also added those two import statements, as I will …
Lachezar Stefanov's user avatar
0 votes
0 answers
79 views

SharePoint Online quick lunch expand button doesn't always work (sometimes has to be clicked...

Has anyone encountered the issue, when they have expandable links in their SPO quick lunch navigation (you know, with up / down arrows to expand / collapse sublevel links, that the sub-content doesn't …
Lachezar Stefanov's user avatar
0 votes
0 answers
480 views

How to reference strings.js in SPfX? (Uncaught TypeError: Cannot read property 'STS' of unde...

I am trying to migrate my code from Classic experience to SPfX. My code is using the SP.UI.ModalDialog, and I have referenced successfully the MicrosoftAjax.js, SP.Runtime.js and the SP.js files in m …
Lachezar Stefanov's user avatar
0 votes
1 answer
1k views

Create a subweb using REST in SPFx: SyntaxError: Unexpected end of JSON input

I am trying to create a classic subweb using a POST REST call in SPFx. Any idea what I am doing wrong here? const postURL: string = `${this.props.context.siteUrl}/_api/web/webinfos/add`; const r …
Lachezar Stefanov's user avatar
0 votes
1 answer
484 views

Correct JSON format to add a user to group using REST POST call in spHttpClient? "Input stri...

I am getting an '“Input string was not in a correct format.” error after submitting the following POST call: any idea what I might be doing wrong here? const addUserURL: string = newWeb + `/_api/web/ …
Lachezar Stefanov's user avatar
0 votes
1 answer
503 views

Batching MSGraph: how to use data from previous requests in JSON

I would like to make three consequential POST requests using MS Graph: (1. Create an Office 365 group; 2. Add the requester as a member of the group; 3. Create an MS Planner Plan, and set the Group fr …
Lachezar Stefanov's user avatar
4 votes
2 answers
2k views

SPFx: Can you use WebPartContext in components different than the main one?

I am trying to call Microsoft Graph from a component, different than the main one. As a first step I am declaring a variable for the MSGraphClient's serviceKey like this: const graphClient: MSGraphC …
Lachezar Stefanov's user avatar
3 votes
2 answers
2k views

How to make a POST call to Microsoft Graph in SPFx (using MSGraphClient)?

I have difficulties to find code samples of POST calls, using the MSGraphClient. The only one I find is using the already deprecated graphHTTPClient ( https://docs.microsoft.com/en-us/sharepoint/dev …
Lachezar Stefanov's user avatar
0 votes
1 answer
1k views

React.js: avoid delay on element <input type=“file”> onChange event

Any react-specific solution to the problem, described here? https://stackoverflow.com/questions/46072489/how-to-avoid-delay-on-element-input-type-file-onchange-event?noredirect=1&lq=1 Basically the …
Lachezar Stefanov's user avatar
3 votes
2 answers
3k views

Office UI Fabric DetailsList(React) rendering: DetailsColumn.render() error

I am trying to add a very basic implementation of the Office UI Fabric's DetailsList React component to my project, but keep on getting the following error when trying to render it: 'DetailsColumn.ren …
Lachezar Stefanov's user avatar