Helge S
  • Member for 9 years, 2 months
  • Last seen more than 2 years ago
In SPFx, do I use CSOM, REST or something else?
Accepted answer
6 votes

For REST-queries, you should use the SpHttpClient class. JSOM is no longer being maintained, so avoid it for now. For "back-end" (C#-code), CSOM is your only option. I usually deploy some CSOM code ...

View answer
Login takes SHAREPOINT\system Account
5 votes

In case any other internet wayfarers come by this problem; it's highly likely that this is due to the app-pool user being given the "Act as system" privilege in the Central Admin User Policy for the ...

View answer
unable to filter UniqueId
4 votes

Unfortunately, it does not appear that UniqueId is supported as a refinable OData property at the moment. You can still filter by it by using a CAML-query however. Here's an example function that just ...

View answer
Classic or Modern Site for Website Development - spfx unable to be used for master page
Accepted answer
2 votes

It's a matter of opinion and requirements of course, but at it's current state i would say the modern pages are more than ready to be used in production sites. You can customize them as you've ...

View answer
Change User Profile Service Application database name
Accepted answer
2 votes

You can specify the database-name when creating the service application through Powershell. To do this, use New-SPProfileServiceApplication with the flag -ProfileDBName. Documentation: https://...

View answer
Display a SPFx web part within a popup on a modern page
1 votes

Office UI-fabric is tailored specifically for Office 365 and SharePoint Online. Even if you find another front-end framework that works, you should not expect it to continue working in the future, as ...

View answer
Site collections sharing URLs
1 votes

It's not possible to have 2 contentdb's attached to a site collection, so you'll need to do something about it. Typically, the most common strategy is to do a little old fashioned cleanup! Archive ...

View answer
Hosted Sharepoint
1 votes

SharePoint Online is a part of Office 365 and gives you exactly this. More detailed pricing and licensing information can be found here.

View answer
How to add buttons on CommandBar - SharePoint Online
1 votes

Create a SharePoint Framework Extention. More info here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/overview-extensions

View answer
Which will be faster in this scenario, CSOM(JSOM) or Search API or Rest?
1 votes

The Search API will always be the fastest, because of the cache, but won't provide the most recent results, unless you're on-prem and have activated continouous crawl (even then, there will be a ...

View answer
Setting default value office ui fabric react people picker
Accepted answer
0 votes

Ref. your comment, here's how it works: You resolve suggestions using onResolveSuggestions, i've explained it below. When you've resolved people you want to store them in your state and set them ...

View answer
Setting default value office ui fabric react people picker
0 votes

Let me answer your actual question; selectedItems takes an Array<IPersonaProps>.

View answer
Is Callouts available in SharePoint Framework
0 votes

The modern webpages of SharePoint Online are completely different from the old ones. You no longer have the SP.UI-library available, you don't even have _spPageContextInfo available. You should not ...

View answer
How to upload a document in a SharePoint list using Graph API
0 votes

In reference to the comments, if you want to upload a document to a SharePoint Online Document Library using Microsoft Graph, you should start with the ListItem endpoint. Note the end of the ...

View answer
Reset dropdown value based on a different dropdown value ....?! (help)
0 votes

Although it's possible to do this with client-side code, if you're not yourself a developer, and do not have one on your team, it's not adviseable to take that path. In SharePoint Online you have ...

View answer
Remove SharePoint from windows explorer
0 votes

IMPORTANT: For people reading the answer above, please do not try to edit your registry as the first thing you do. Editing the registry can cause unwanted and damaging side-effects on your system. If ...

View answer
Filter list items using custom field type in REST API
-1 votes

Lookup-fields are objects that have properties. If your Country-lookup has a returned field called Title, you must expand it and include the field in the select. Your query would look something like ...

View answer