You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general-development/how-to-avoid-getting-throttled-or-blocked-in-sharepoint-online.md
+74-42Lines changed: 74 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ What are the recommendations?
130
130
> Format of the user agent string is expected to follow [RFC2616](http://www.ietf.org/rfc/rfc2616.txt), so please follow up on the above guidance on the right separators. It is also fine to append existing user agent string with the requested information.
131
131
132
132
> [!NOTE]
133
-
> If you are developing front end components executing in the browser, most of modern browsers don't allow overwritting the user agent string and you don't need to implement this.
133
+
> If you are developing front end components executing in the browser, most of modern browsers don't allow overwriting the user agent string and you don't need to implement this.
134
134
135
135
### Example of decorating traffic with User agent when using Client Side Object Model (CSOM)
136
136
@@ -148,7 +148,7 @@ using (var ctx = new ClientContext("https://contoso.sharepoint.com/sites/team"))
> You'll need to use SharePoint Online CSOM version 16.1.8316.1200 (December 2018 version) or higher.
175
176
176
-
```
177
+
Add this extension method in a static class and use `ExecuteQueryWithIncrementalRetry` instead of `ExecuteQuery` to make your code handle throttling requests.
177
178
178
-
public static void ExecuteQueryWithIncrementalRetry(this ClientContext context, int retryCount, int delay)
Blocking is the most extreme form of throttling. We rarely ever block a tenant, unless we detect long-term, extremely excessive traffic that may threaten the overall health of the SharePoint Online service. We apply blocks to prevent excessive traffic from degrading the performance and reliability of SharePoint Online. A block - which is usually placed at the app or user level - prevents the offending process from running until you fix the problem. If we block your subscription, you must take action to modify the offending processes before the block can be removed.
0 commit comments