id stringlengths 14 16 | text stringlengths 2 3.14k | source stringlengths 45 175 |
|---|---|---|
8059f6e588ab-4 | The code that underlies the Notes section of the customer dashboard uses REST queries to retrieve data from a list that is deployed to the add-in web. This list contains fields for titles, authors, customer IDs, and descriptions. You can use the add-in's interface to add and retrieve notes for a specified customer, as ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-5 | );
}
The following code adds a note for a given customer to the Notes list.
function addNoteToList(note, customerID) {
var executor = new SP.RequestExecutor(appWebUrl);
var bodyProps = {
'__metadata': { 'type': 'SP.Data.NotesListItem' },
'Title': customerID,
'FTCAM_Description': n... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-6 | To load enough data to exceed the list query threshold limit:
In the left menu, choose Sample Home Page .
In the List Query Thresholds section, choose Add list items to the Notes list in the add-in web .
Per the instructions that appear above the button, perform this operation 10 times.
When the Notes... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-7 | Note
The operation takes about one minute to run each time you choose the button. The end result of running the operation 11 times is shown in the next figure.
After you perform the operation 11 times, an error message occurs when you choose the button, as shown in the following figure.
After you exceed t... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-8 | Offsetting these advantages are the following disadvantages:
The host web limits both the amount of data you can store in lists and the size of the query results. If your business needs require storing and/or querying large data sets, this is not a recommended approach.
For complex queries, lists do not perform a... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-9 | Contents of the Assets directory of the web project
The following JavaScript code that you'll find in the Views/SupportCaseAppPart/Index.cshtml file uses the cross-domain library to invoke a REST query on the SharePoint list on the host web.
function execCrossDomainRequest() {
var executor = new SP.RequestExecu... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-10 | executor.executeAsync(
{
url: appWebUrl + "/_api/SP.AppContextSite(@@target)" +
"/web/lists/getbytitle('Support Cases')/items" +
"?$filter=(FTCAM_CustomerID eq '" + customerID + "')" +
"&$top=30" +
"&$select=Id,Title,FTCAM_Status,FTCAM_CSR... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-11 | Hosting services such as Microsoft Azure enable you to scale your web services.
You can back up and restore information on your web services separately from your SharePoint site.
You don't lose data when uninstalling your add-in, unless the add-in uses the AppUninstalled event to delete the data.
The Customer... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-12 | var url = "https://odatasampleservices.azurewebsites.net/V3/Northwind/Northwind.svc/Customers?$format=json" + "&$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Country,Phone,Fax" + "&$filter=CustomerID eq '" + customerID + "'"; | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-13 | $.get(url).done(getCustomersDone)
.error(function (jqXHR, textStatus, errorThrown) {
alert('Can\'t get customer ' + customerID + '. An error occurred: ' +
jqXHR.statusText);
});
Azure Table storage (Customer Service Survey scenario)
The Customer Service Survey scenario allows a cus... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-14 | return View();
}
The following code from the SurveyRatingService.cs file defines the SurveyRatingsService constructor, which sets up the connection to the Azure Storage account.
public SurveyRatingsService(string storageConnectionStringConfigName =
"StorageConnectionString")
{
var connectionString... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-15 | sum += score;
}
return sum / count;
}
Azure Queue storage (Customer Call Queue scenario)
The Customer Call Queue scenario lists callers in the support queue and simulates taking calls. The scenario uses Azure Queue storage to store data and the Microsoft.WindowsAzure.Storage.Queue.CloudQueue API with Mod... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-16 | public CallQueueController()
{
CallQueueService = new CallQueueService();
}
// GET: CallQueue
public ActionResult Home(UInt16 displayCount = 10)
{
var calls = CallQueueService.PeekCalls(displayCount);
ViewBag.DisplayCount = displayCount;
ViewBag.TotalCallCount = Call... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-17 | public IEnumerable<Call> PeekCalls(UInt16 count)
{
var messages = queue.PeekMessages(count);
var serializer = new JavaScriptSerializer();
foreach (var message in messages)
{
Call call = null;
try
{
call = serializer.Deserialize<Call>(message.AsString)... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-18 | return count;
}
}
Azure SQL Database (Recent Orders scenario)
The Recent Orders scenario uses a direct call to the Northwind Azure SQL Database to return all the orders for a given customer.
The following are the advantages to using this approach:
A database can support more than one add-in.
You can up... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-19 | This page is a Model-View-Controller view defined in the Views/CustomerDashboard/Orders.cshtml file. Code in the Controllers/CustomerDashboardController.cs file uses the Entity Framework to query the Orders table in your Azure SQL Database. The customer ID is passed by using a query string parameter in the URL that... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
8059f6e588ab-20 | ViewBag.SharePointContext =
SharePointContextProvider.Current.GetSharePointContext(HttpContext);
return View(orders);
}
See also
Office 365 Developer Patterns and Practices on GitHub
Composite business SharePoint Add-ins | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/data-storage-options-in-sharepoint-online |
51661eb54261-0 | If you're using InfoPath as the basis for creating forms in your add-ins, now is the time to start thinking about migrating your forms to other solutions. Although InfoPath is currently supported, InfoPath 2013 is the last release of the desktop InfoPath client, and InfoPath Forms Services in SharePoint 2013 is the las... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/migrate-infopath-forms-to-sharepoint |
a89a27c72c57-0 | Composite business add-ins are add-ins that are tightly integrated with your business processes and line-of-business (LOB) technologies (such as databases and web services). These add-ins typically include a number of complex interactions with users and with other technologies.
The sample composite business add-ins d... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/composite-business-apps-for-sharepoint |
a89a27c72c57-1 | Article
Sample
Shows you how to...
Migrate InfoPath forms to SharePoint
Migrate your InfoPath forms to other supported technologies.
Data storage options in SharePoint Online
Core.DataStorageModels
Use different types of storage models to store your SharePoint Online data.
Corporate ev... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/composite-business-apps-for-sharepoint |
5870c3cd0a75-0 | After you've spent your time and energy building that new SharePoint-based portal, you want to get it live as soon as possible...but what would be a good model for doing so? This article explains the recommended model for deploying your portal to your end users.
Note
Although this guidance primarily targets Share... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-rollout |
5870c3cd0a75-1 | Such a performance test is just a one-time validation, whereas your portal will keep on evolving. It's better to rely on built-in portal telemetry so that you're able to continuously follow up on your portal performance. It's also difficult to build a load test that represents a real usage pattern.
The recommende... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-rollout |
5870c3cd0a75-2 | The recommended approach for doing this is to embed portal telemetry in your implementation, as explained in the telemetry section in Performance guidance for SharePoint Online portals . Having a continuous flow of portal performance data helps you understand if the portal performance changes as the number of users gr... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-rollout |
4f42cedec508-0 | Being able to apply a custom brand on a portal is a critical capability, and this article provides you with an overview of the branding options and branding best practices.
Note
Although this guidance primarily targets SharePoint Online, most of it also applies to portals hosted in an on-premises SharePoint envir... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
4f42cedec508-1 | Consider the following general principles when branding portals in a SharePoint Online environment:
The SharePoint Online service is constantly improving . Updates provisioned to the service may affect the Document Object Model (DOM) structure of out-of-the-box pages and the content of out-of-the-box files (for exa... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
4f42cedec508-2 | There are significant differences between branding approaches for "classic" vs "modern" sites and pages . For information about "modern" sites and pages, see Customizing "modern" team sites and Customizing "modern" site pages .
Customize the look
There are several out-of-the-box ways for customizing the look... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
4f42cedec508-3 | Office 365 Suite Bar
The guidance for the Suite Bar from the Microsoft perspective is the following:
The Suite Bar is a tenant-level navigation component that allows users to easily move between all Office 365 services.
Your portal application does not "own" the Suite Bar, nor should it presume to do so.
Trea... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
4f42cedec508-4 | Making out-of-the-box Seattle master responsive
Custom Header and Footer sample
Add functionality
Embedding client-side scripts in the pages can allow you to further customize the look and functionality of the portal. For example, this approach can be used to customize navigation controls, to add custom headers... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
4f42cedec508-5 | There are several approaches on how these files can be deployed:
Publish files to libraries in individual site collections . In this case, each site collection can use its own version of branding assets. Access to files is controlled by using standard SharePoint security mechanisms. However, updating files requires... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-branding |
91b2ef2224d8-0 | Every portal design includes a suite of display components that dynamically locate content for display on portal pages. Fundamental to the operation of these controls is the concept of content aggregation, which for the purposes of this article we define as the process of dynamically locating desired content at run-tim... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-1 | Examples of where content aggregation can be used:
The portal home page contains a latest news control that renders a list of links to the most-recent articles published within the portal.
Portal pages contain a global navigation control that renders navigation links managed within a custom SharePoint list.
R... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-2 | Absolute real-time content aggregation is technically not possible in any publishing system. Even if you adhere to the default behaviors of the publishing portal, delays and caching occur at various points in the content aggregation/rendering pipeline; some of it is visible and configurable (for example, custom client-... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-3 | You can build CAML queries and use them to perform content aggregation operations within SharePoint. The queries are executed against the SharePoint content databases. CAML queries are baked into the implementation of server-side controls such as the out-of-the-box Content-by-Query web part. CAML queries can also be us... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-4 | Important
We recommend that you avoid CAML-based content aggregation when possible.
Guidelines for using CAML-based content aggregation
Avoid its use on high-volume pages.
Constrain its use to a specific class of content (for example, alerts).
Define the simplest, most-efficient CAML query possible and ve... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-5 | Note the following:
Portal content must be crawled and added to the search index in order to be made available for search-based data aggregation.
SharePoint continuously crawls the portal content to provide an up-to-date search index. However, there is a slight delay before content changes appear in the index. ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
91b2ef2224d8-6 | For more information about the Client-Side Data Access Layer, see Performance guidance for SharePoint Online portals .
See also
Building SharePoint Online portals | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-data-aggregation |
279540975cda-0 | Every portal project needs to implement a navigation solution. Based on project requirements, the navigation solution might choose to leverage only out-of-the-box navigation components, only custom navigation components, or a combination of both.
This article describes how to build a well-performing navigation system... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-1 | Rationale for a custom navigation solution
There are many reasons why a portal architect might decide to pursue a custom navigation solution. Most reasons are related to the fact that modern portal designs are responsive in nature and usually include a feature-rich navigation system; as such, attempts to map the prop... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-2 | The other choice, out-of-the-box structural navigation (described later in this article), can easily become very resource-intensive (especially for complex site collection structures) and can result in significantly slower page-load performance.
Using a custom navigation solution
You've evaluated the rational... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-3 | Footer navigation : Implement a custom control that targets a central, portal-specific navigation configuration entity. Use a public cache for the navigation nodes. Consider the out-of-the-box management page.
Site map : Implement a custom control that targets a central, portal-specific navigation configuration entit... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-4 | Note
Search-based navigation has a dependency on the search index. SharePoint continuously crawls portal content; however, there is still a slight delay before changes to the SharePoint list appear in the search index.
The simplest and best-performing custom navigation store is a JavaScript resource file (for exa... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-5 | Out-of-the-box navigation store
Out-of-the-box managed navigation (MMS) : Managed navigation allows you to use a Managed Metadata Service (MMS) Term set to configure the navigation nodes for a given site collection. Out-of-the-box navigation display controls automatically consume this data. The out-of-the-box n... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-6 | Out-of-the-box search index (Search) : Search driven navigation allows you to query the SharePoint search index for sites and pages by constructing the proper search query. There's no specific out-of-the-box navigation management page and you must implement custom navigation display controls to consume the data ret... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-7 | As a rule of thumb, pursue custom management pages only when a default option does not exist, when the page must support a responsive UI, or when the page is meant to be consumed via the front-end user view of the portal (as opposed to the back-end admin view).
Navigation store API
The navigation store API prov... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
279540975cda-8 | Client-Side Data Access Layer
The Client-Side Data Access Layer is a custom client-side JavaScript framework made available to all custom client-side display controls, including the custom navigation display controls. It supports intelligent data loading patterns, abstracts the details of the client-to-server request... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-navigation |
a1ac4aa3a835-0 | Having a solid information architecture is an important prerequisite for realizing a well-maintained and well-performing portal. Designing the optimal structure requires detailed planning. If not done properly, you can adversely affect user adoption or have significant performance issues; the likelihood of both is very... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
a1ac4aa3a835-1 | Use deep hierarchies in a single site collection with unique permissions . This can cause performance challenges.
Have too many sub sites in a single site collection . All sites in a site collection are stored together in the same SQL database. This can potentially affect site and server (on-premises) performance, de... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
a1ac4aa3a835-2 | For more information, see SharePoint Online limits .
Recommended patterns include grouping site collections and sites into different logical groupings such as Enterprise level and publishing sites. These might include search centers, records centers, and ediscovery centers. These can be either at the root level or ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
a1ac4aa3a835-3 | Follow the principle of least privilege to start, expanding as needed.
Use the standard, default groups first (Members, Visitors, Owners). Obviously, limit the the number of individuals to the Owners group.
Use permissions inheritance, and use groups over individuals when granting permissions.
Organize content to... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
a1ac4aa3a835-4 | InformationClassification
BusinessFunction
CorporateFunction
...
Create these in the content-type hub and use SharePoint CSOM to create content types using unique IDs. You still need to manually publish these content types. Don’t use the content-type hub if you think that you would need to change the content ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
a1ac4aa3a835-5 | Terms are not security-trimmed, so sensitivity needs to be considered.
For planning managed metadata, the following worksheets are available:
Managed metadata services planning worksheet
Detailed term set planning worksheet
Navigation
For more information about navigation best practices, see Navigation... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-information-architecture |
0058c3074cee-0 | Every portal design includes at least one aspect that requires customizing SharePoint. The customization model for SharePoint Online portals is the SharePoint Add-in model or the SharePoint Framework. These both use a distributed application architecture that encompasses several execution environments: SharePoint Onlin... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-1 | What not to do
The following list contains the key things not to do when planning for performance.
Don't:
Build custom client-side controls that issue client-side data requests to SharePoint and add a dozen or more of them to the page.
Implement your client-side controls without centralized data access to t... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-2 | Consider the following comparison of the page-load sequence associated with each web application model.
Classic server-side web application sequence
First visit to page
Issue page request
Issue resource file requests (zero or more)
Execute some JavaScript
Return visit to page
Issue page request
... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-3 | Understand that your application must now provide well-performing, client-side equivalents.
From a performance perspective, the goal with modern web applications in general, and client-side web applications in particular, is to implement the client-side logic necessary to mimic the minimal network traffic patterns ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-4 | Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/yourportal | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-5 | # Device channels
Disable-PnPFeature -Scope Site -Identity 57cc6207-aebf-426e-9ece-45946ea82e4a -Force
# SEO
Disable-PnPFeature -Scope Site -Identity 17415b1d-5339-42f9-a10b-3fef756b84d1 -Force
# MetadataNav
Disable-PnPFeature -Scope Web -Identity 7201D6A4-A5D3-49A1-8C19-19C4BAC6E668 -Force
Note
PnP PowerShe... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-6 | Capture critical information application metrics such as:
Application initialization timing
Page-load timing (in general, and for specific pages)
Client-side timing (in general, and for specific actions)
External request/response timing (for example: SharePoint REST calls, third-party services)
Search execu... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-7 | Consider using the legacy browser only for the constrained LOB application; use a modern browser for everything else, including the new client-side web applications.
For the latest Office 365 browser requirements, see Which browsers work with Office Online .
Consider the client environment and network topolo... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-8 | Defer the data request for as long as possible (that is, Lazy Load).
Request the data only if, and when, it is actually needed; for example, as in response to a browser event or user action (that is, do not request data for a collapsed/hidden control; wait until the control is expanded/rendered).
Use a cache to f... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-9 | A minimal representation requires less storage within the (finite) client-side cache.
A request-independent representation decouples the data from its data source and request semantics; this allows the data source to be easily changed (static, mock, live) as the solution is developed.
JSON enables the use of JavaSc... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-10 | If you must use CAML queries, observe the following guidelines:
Avoid their use on high-volume pages (for example, the portal home page).
Define the simplest, most-efficient CAML query possible, and verify its performance.
Leverage the Client-Side Data Access Layer Framework (described later in this article) to... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-11 | For details about how to avoid being throttled or blocked, see Avoid getting throttled or blocked in SharePoint Online .
Batch REST request traffic
REST request traffic can be now be optimized via OData Batching.
For more information, see OData Batch Request Tutorial and the OData Batch Request Protocol Spe... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-12 | Use resource files effectively to improve the performance of your client-side web application:
Use JavaScript/CSS files to deliver common script/CSS content shared across pages and components. You get the same benefits described earlier for JavaScript-based configuration files, plus:
Adheres to the precept of "... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-13 | Note
The Office 365 private CDN capability has a publishing feature auto URL rewriting to CDN URLs. So after private CDN is enabled, SharePoint returns your publishing pages with links pointing to your private CDN location without you as a developer having to build this. This applies to publishing pages, but also t... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-14 | Extensive performance guidelines for JavaScript are outside the scope of this article; however, we summarize several of the most important concepts here:
Limit updates to the DOM.
Use looping structures efficiently.
Limit use of try/catch in critical code segments.
Use proper scope for variables.
For in-d... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-15 | Provide Read more... links to redirect users to low-volume detail pages where expanded content can be viewed with less overall impact to the portal.
Client-Side Data Access Layer (DAL) Framework
The Client-Side Data Access Layer (DAL) Framework is a custom client-side JavaScript framework that you imple... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-16 | Support absolute and sliding expiration policies.
Allow each storage entry to configure its own storage options for storage (transient/durable), expiration policy (absolute/sliding), and expiration timeout (in minutes).
Continuously monitor run-time performance via logging and telemetry.
Continuously review data ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-17 | Web storage allows the client environment to store transient data (session storage) and long-term data (local storage).
Session storage supports caching of private data.
Local storage supports caching of shared data.
Cookie support can be added to provide another client-side storage option if needed.
Servi... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
0058c3074cee-18 | The Business Data Manager creates the business data object (BDO).
The Business Data Manager populates the BDO with the fresh data.
The Business Data Manager asks the Storage Manager to store the BDO per the storage options.
The Business Data Manager returns the BDO to the display component.
The display ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-performance |
9a1e01ab443e-0 | SharePoint on-premises has been, and is, a popular platform for building enterprise portals (also known as intranets). You can build similar portals on SharePoint Online as well. However, because SharePoint Online is different from an infrastructure architecture point of view, it's important to factor in the SharePoint... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-overview |
9a1e01ab443e-1 | Links to interesting resources where you can learn more.
Samples. For example, Client-Side Data Access Layer (DAL) Sample .
How to provide feedback
This guidance is completely open source, and we encourage the community to provide feedback. On the top right of each page, you can choose Edit , which takes you ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-overview |
9a1e01ab443e-2 | Content aggregation
Describes best practices and techniques for content aggregation, and the cons of using real-time content aggregation.
Branding
Describes branding requirements and general principles when branding portals in a SharePoint Online environment.
Deployment
Compares past deployment strate... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/portal-overview |
20d4ffb53c5b-0 | When developing for a Multi-Geo tenant, it's important to understand the security model. Fortunately, the model used for a Multi-Geo tenant is the same as the model used for a regular tenant.
This article shows you how to configure the following sample applications:
An application that can read and update profile... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-1 | Yes
Sites.ReadWrite.All
Application permission
Allows the app to read/write documents and list items in all site collections without a signed-in user. This permission is only needed if the application will be retrieving the user's personal site location (for example, https://graph.microsoft.com/v1.0/users/U... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-2 | Clear the Live SDK support check box.
Save your changes.
Consent to the application
In this sample, the User.ReadWrite.All and Sites.ReadWrite.All application permissions require admin consent in a tenant before they can be used. Create a consent URL like the following:
https://login.microsofton... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-3 | string tenantAdminSiteForMyGeoLocation = "https://contoso-europe-admin.sharepoint.com"; | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-4 | using (ClientContext cc = new ClientContext(tenantAdminSiteForMyGeoLocation))
{
SecureString securePassword = GetSecurePassword("password");
cc.Credentials = new SharePointOnlineCredentials("admin@contoso.onmicrosoft.com", securePassword);
// user profile logic
} | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-5 | static SecureString GetSecurePassword(string Password)
{
SecureString sPassword = new SecureString();
foreach (char c in Password.ToCharArray()) sPassword.AppendChar(c);
return sPassword;
}
Using an app-only principal
When using app-only, you must grant the created app principal full control for th... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-6 | Grant permissions to the created principal
The next step is granting permissions to the newly created principal. Because we're granting tenant-scoped permissions, this grant can only be done via the appinv.aspx page on the tenant administration site.
You can reach this site via https://contoso-admin.sharepoint.c... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-7 | //Get the realm for the URL.
string realm = TokenHelper.GetRealmFromTargetUrl(siteUri);
//Get the access token for the URL.
string accessToken = TokenHelper.GetAppOnlyAccessToken(TokenHelper.SharePointPrincipal, siteUri.Authority, realm).AccessToken; | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-8 | //Create a client context object based on the retrieved access token.
using (ClientContext cc = TokenHelper.GetClientContextWithAccessToken(tenantAdminSiteForMyGeoLocation, accessToken))
{
// user profile logic
}
A sample app.config looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<a... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-9 | Yes
Use the Azure AD application creation steps as described in the Read/update profiles for all users section.
Create and delete site collections and set tenant site collection properties
Using the Microsoft Graph API
The Multi-Geo sites article provides more details about how to create group sit... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
20d4ffb53c5b-10 | </AppPermissionRequests>
See also
Microsoft Graph Developer Center
Get access tokens to call Microsoft Graph
Microsoft Graph documentation
Graph Explorer
App-only and elevated privileges in the SharePoint Add-in model
OneDrive and SharePoint Online Multi-Geo | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sampleapplicationsetup |
640a7eaa67b4-0 | When you want to use external data, such as data from your other business applications or partner resources in SharePoint Online, you can use Business Connectivity Services (BCS) together with the Secure Store Service.
BCS supports integrated data solutions to bring external data into SharePoint. This enables SharePo... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-bcsandsecurestore |
e7e07f297462-0 | Customers use the content type hub to define content types in a central location, and then publish the content types to all sites in a SharePoint tenant. This article explains how the content type hub works in a SharePoint Multi-Geo tenant.
A Multi-Geo tenant has one content type hub per geo location. To define conte... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-contenttypehub |
02d06fb53d50-0 | Managed metadata in SharePoint is Multi-Geo-aware. This article describes how to manage metadata in a SharePoint Multi-Geo tenant.
The managed metadata that you define for the default geo location of a Multi-Geo tenant automatically replicates to the tenant's satellite locations. Managed metadata that you define for ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-managedmetadata |
02d06fb53d50-1 | The incremental replication process runs hourly. The full replication job runs every three days.
When you programmatically create a term set in the default geo location, that term set is automatically replicated. You don't have to make any changes to the APIs.
In some cases, you might want a term group, term se... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-managedmetadata |
b3c1afa90a7a-0 | In a Multi-Geo tenant, each geo location has its own search index, as well as its own independent search center. When a user searches, the query is fanned out to all the indexes, and the returned results are merged.
For example, a user in one geo location can search for content stored in another geo location, or for ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-search |
b9301171d0fa-0 | In a Multi-Geo tenant, you can define a preferred data location for a user, detect a user's profile location and personal site URL, and read and update default and custom user profile properties.
Define a preferred data location
In a Multi-Geo tenant, SharePoint users span different geo locations; for example, some... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-1 | Use the SharePoint User Profile API. We recommend this approach because it works in all scenarios.
Use Microsoft Graph. This works for users who also have personal sites, but not for users who don't have personal sites.
Use the SharePoint User Profile API to detect profile location
You can call the SharePoint U... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-2 | PeopleManager peopleManager = new PeopleManager(this.clientContext);
var userProperties = peopleManager.GetPropertiesFor($"i:0#.f|membership|{userPrincipalName}");
this.clientContext.Load(userProperties);
this.clientContext.ExecuteQuery();
result = userProperties.PersonalSiteHostUrl; | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-3 | return result;
}
When you have the personal site host URL, you can use that along with the Multi-Geo discovery information to get the tenant admin site URL for the geo location that hosts the user's profile.
To learn more, see the MultiGeo.UserProfileUpdates sample.
Use Microsoft Graph to detect user's perso... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-4 | For more information, see the MultiGeo.UserProfileUpdates sample.
Update the preferred data location property
The user's preferred data location ( preferredDataLocation property) indicates the preferred geo location for the user. This affects the following:
The geo location where the user's personal site is ... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-5 | PATCH https://graph.microsoft.com/beta/users/bert@contoso.onmicrosoft.com
JSON payload:
{
"preferredDataLocation" : "eur"
} | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-6 | JSON payload:
{
"preferredDataLocation" : "eur"
}
For more information, see the MultiGeo.UserPreferredDataLocation sample.
Add custom SharePoint user profile properties
You can add company-specific user profile properties to user profiles in SharePoint. For SharePoint Multi-Geo tenants, the following cons... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
b9301171d0fa-7 | int i = 0;
foreach (var prop in props)
{
Console.WriteLine($"Prop: {propsToRetrieve[i]} Value: {prop}");
i++;
}
// Update user profile properties
peopleManager.SetSingleValueProfileProperty(userAccountName, "CostCenter", "89786879");
tenantAdminContext.ExecuteQuery();
For more information, see the MultiGeo... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-userprofileexperience |
a52793353847-0 | In a Multi-Geo tenant, you have an app catalog per geo location, which is something to consider if you want to deploy your apps across all geo locations.
By "app", we mean all apps that you deploy by first adding them to your tenant app catalog. All such apps are in scope of this guidance, including SharePoint Add-In... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-apps |
0f9fac711beb-0 | SharePoint sites can be spread across the default and satellite geo locations of a Multi-Geo tenant. When your custom development (script, app, console application, node.js app, and so on) needs to provision sites, it's important to be aware of the geo locations in your Multi-Geo tenant.
When provisioning classic tea... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sites-provisioning |
0f9fac711beb-1 | using (var ctx = new ClientRuntimeContext(tenantAdminSiteForMyGeoLocation))
{
ctx.Credentials = adminCredentials;
var tenant = new Tenant(ctx);
//Create new site.
var newsite = new SiteCreationProperties()
{
Url = targetUrl,
Owner = owner,
Template = "STS#0",
... | https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/multigeo-sites-provisioning |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.