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/apis/alm-api-for-spfx-add-ins.md
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ ALM APIs can be used to perform exactly the same operations that are available f
28
28
ALM APIs are supported for the tenant-scoped site collections and [site collection app catalog](../general-development/site-collection-app-catalog.md). Use the corresponding app catalog's URL to target a specific app catalog. You must first enabled a site collection app catalog before targeting it with the actions documented on this page.
29
29
30
30
> [!IMPORTANT]
31
-
> Tenant-scoped permissions which require [tenant administrative approval](https://docs.microsoft.com/sharepoint/dev/solution-guidance/how-to-provide-add-in-app-only-tenant-administrative-permissions-in-sharepoint-online) are not supported with the ALM APIs.
31
+
> Tenant-scoped permissions which require [tenant administrative permissions](../solution-guidance/how-to-provide-add-in-app-only-tenant-administrative-permissions-in-sharepoint-online.md) are not supported with the ALM APIs.
32
32
33
33
## Options for working with ALM APIs
34
34
@@ -42,12 +42,12 @@ The app catalog must be included in all HTTP requests when using the REST API as
| site collection |`https://contoso.sharepoint.com/sites/Marketing/_api/web/sitecollectionappcatalog/{command}`|
49
49
50
-
- when targeting the tenant app catalog located at **https://contoso.sharepoint.com/sites/AppCatalog**, the endpoint would be **
50
+
- when targeting the tenant app catalog located at `https://contoso.sharepoint.com/sites/AppCatalog`, the endpoint would be **
51
51
52
52
Learn more here: [SharePoint REST API](../sp-add-ins/get-to-know-the-sharepoint-rest-service.md)
53
53
@@ -57,7 +57,7 @@ The PnP CSOM implements the ALM APIs by calling the SharePoint REST API.
57
57
58
58
Before using any of the ALM APIs in PnP CSOM, you need to obtain an authenticated client context using the [Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM). Then use the authenticated client context to get an instance of the PnP CSOM's **AppManager** object to call the ALM commands:
59
59
60
-
```cs
60
+
```csharp
61
61
usingMicrosoft.SharePoint.Client;
62
62
usingOfficeDevPnP.Core.ALM;
63
63
@@ -72,7 +72,7 @@ using (var context = new ClientContext(webURL)) {
72
72
73
73
In all PnP Core methods, it's assumed the request targets the tenant app catalog in the tenant you connect to using the SharePoint CSOM `ClientContext` object. you can override the scope of all commands with an optional scope argument, for example
Copy file name to clipboardExpand all lines: docs/apis/webhooks/get-started-webhooks.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Each notification generated by the service is serialized into a **webhookNotific
100
100
101
101
4. Add the following code to the body of the **SPWebhookNotification** class:
102
102
103
-
```cs
103
+
```csharp
104
104
public string SubscriptionId { get; set; }
105
105
106
106
public string ClientState { get; set; }
@@ -128,7 +128,7 @@ Because multiple notifications can be submitted to your webhook receiver in a si
128
128
129
129
4. Add the following code to the body of the **SPWebhookContent** class:
130
130
131
-
```cs
131
+
```csharp
132
132
public List<SPWebhookNotification> Value { get; set; }
133
133
```
134
134
@@ -162,7 +162,7 @@ A trace writer is required, so you must add a trace writer to the controller con
162
162
163
163
3. Add the following line inside the **Register** method:
164
164
165
-
```cs
165
+
```csharp
166
166
config.EnableSystemDiagnosticsTracing();
167
167
```
168
168
@@ -182,7 +182,7 @@ Now build the webhook receiver controller that handles the incoming requests fro
182
182
183
183
6. Replace the `using` statements with the following code:
184
184
185
-
```cs
185
+
```csharp
186
186
using Newtonsoft.Json;
187
187
using SPWebhooksReceiver.Models;
188
188
using System.Collections.Generic;
@@ -198,7 +198,7 @@ Now build the webhook receiver controller that handles the incoming requests fro
198
198
199
199
7. Replace the code in the **SPWebhookController** class with the following code:
200
200
201
-
```cs
201
+
```csharp
202
202
[HttpPost]
203
203
public HttpResponseMessage HandleRequest()
204
204
{
@@ -432,7 +432,7 @@ Now that you have the required information, construct the query and the request
432
432
433
433
The trace indicates that the webhook received initially received a validation request. If you look at the code, you'll see that it returns the validation token immediately so that SharePoint can validate the request:
434
434
435
-
```cs
435
+
```csharp
436
436
if (queryStringParams.AllKeys.Contains("validationtoken"))
437
437
{
438
438
httpResponse = new HttpResponseMessage(HttpStatusCode.OK);
@@ -496,7 +496,7 @@ Now add a file to the Documents library and test if you get a notification from
496
496
497
497
2. In the **SPWebhookController**, place a breakpoint on the following line of code:
498
498
499
-
```cs
499
+
```csharp
500
500
var requestContent = Request.Content.ReadAsStringAsync().Result;
Copy file name to clipboardExpand all lines: docs/apis/webhooks/webhooks-reference-implementation.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ After you've requested SharePoint to add your webhook, SharePoint validates that
61
61
62
62
Take a look at the reference implementation, and you'll see that all webhook CRUD operations are consolidated in the [WebHookManager](https://github.com/SharePoint/sp-dev-samples/blob/master/Samples/WebHooks.List/SharePoint.WebHooks.Common/WebHookManager.cs) class of the **SharePoint.WebHooks.Common** project. Adding a webhook is done by using the **AddListWebHookAsync** method:
63
63
64
-
```cs
64
+
```csharp
65
65
/// <summary>
66
66
/// This method adds a webhook to a SharePoint list. Note that you need your webhook endpoint being passed into this method to be up and running and reachable from the internet
67
67
/// </summary>
@@ -81,7 +81,7 @@ public async Task<SubscriptionModel> AddListWebHookAsync(string siteUrl, string
81
81
82
82
When making a call to SharePoint, you need to provide authentication information, and in this case you're using a **Bearer** authentication header with an **access token**. To obtain the access token, intercept the token via an **ExecutingWebRequest** event handler:
Copy file name to clipboardExpand all lines: docs/declarative-customization/column-formatting.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1063,7 +1063,7 @@ An optional property that specifies the text content of the element specified by
1063
1063
1064
1064
An optional property that specifies style attributes to apply to the element specified by `elmType`. This is an object with name-value pairs that correspond to CSS names and values. The values of each property in the style object can either be a string (including special strings) or an Expression object. The following style attributes are allowed.
0 commit comments