Skip to content

Commit c8f2da3

Browse files
committed
Merge branch 'master' of https://github.com/SharePoint/sp-dev-docs into shagra/docs-edit-actions
2 parents 5174219 + 28cfc44 commit c8f2da3

8 files changed

+68
-25
lines changed

docs/declarative-customization/column-formatting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use column formatting to customize SharePoint
33
description: Customize how fields in SharePoint lists and libraries are displayed by constructing a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements.
4-
ms.date: 10/18/2021
4+
ms.date: 11/11/2021
55
ms.localizationpriority: high
66
---
77

@@ -705,6 +705,7 @@ The following column types support column formatting:
705705
* Managed Metadata
706706
* Average Rating
707707
* Likes
708+
* Approval Status
708709

709710
The following are currently **not** supported:
710711

docs/declarative-customization/formatting-advanced.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Advanced formatting concepts
33
description: Advanced formatting concepts
4-
ms.date: 11/12/2021
4+
ms.date: 11/16/2021
55
ms.localizationpriority: high
66
---
77
# Advanced formatting concepts
@@ -14,9 +14,21 @@ The following screenshot shows a list with a Flow button added to the Action col
1414

1515
![screenshot of the sample](../images/sp-columnformatting-flow.png)
1616

17-
You can use formatting to create buttons that, when selected, run Flows on the corresponding list item. The Flow Launch Panel will be displayed after choosing the button and the Flow will just run.
17+
You can use column formatting to create buttons that, when selected, run Flows on the corresponding list item. For flows that are [solution-aware](/power-automate/overview-solution-flows), the Flow Launch Panel will be displayed after choosing the button and you must select Run Flow to start the flow. For flows that are not solution-aware, The Flow Launch Panel will be displayed after choosing the button and the Flow will just run.
1818

19-
To use the sample below, you must substitute the ID of the Flow you want to run. This ID is contained within the `customRowAction` attribute inside the `button` element. To obtain a Flow's ID:
19+
To use the sample below, you must substitute the ID of the Flow you want to run. This ID is contained within the `actionParams` property of the `customRowAction` attribute inside the `button` element.
20+
21+
To obtain the ID of a flow that is solution-aware:
22+
23+
1. Choose Flow > See your flows in the SharePoint list where the Flow is configured.
24+
2. If applicable, [switch to the environment](/power-platform/admin/working-with-environments#switch-the-environment) in which the Flow is hosted.
25+
3. Choose the Solutions area.
26+
4. Choose the solution in which the Flow was created.
27+
5. Filter for Cloud flows and select the Flow you want to run.
28+
6. Choose Export > Get flow identifier.
29+
7. Copy the ID.
30+
31+
To obtain the ID of a flow that is not solution-aware:
2032

2133
1. Choose Flow > See your flows in the SharePoint list where the Flow is configured.
2234
2. Choose the Flow you want to run.

docs/declarative-customization/formatting-syntax-reference.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Formatting syntax reference
33
description: Formatting syntax reference
4-
ms.date: 11/12/2021
4+
ms.date: 11/16/2021
55
ms.localizationpriority: high
66
---
77

@@ -914,6 +914,35 @@ The following example shows how an image field can be used on a current field.
914914
}
915915
```
916916

917+
**Approval Status fields**
918+
919+
The Approval Status field object has the following property (with example value):
920+
921+
```JSON
922+
{
923+
"displayValue": "Approved",
924+
}
925+
```
926+
`displayValue` is localized string of the approval status.
927+
928+
`@currentField` or `[$__ModerationStatus]` will resolve to the internal code -
929+
- 0 : Approved
930+
- 1 : Denied
931+
- 2 : Pending
932+
- 3 : Draft
933+
- 4 : Scheduled
934+
935+
The following example shows how a approval status field might be used on a current field.
936+
937+
```JSON
938+
{
939+
"elmType": "div",
940+
"txtContent": "@currentField.displayValue",
941+
"style": {
942+
"color": "=if(@currentField == 2, 'red', '')"
943+
}
944+
}
945+
```
917946

918947
### "[$FieldName]"
919948

@@ -1054,6 +1083,7 @@ The following column types can use displayValue property to get the default rend
10541083
* Number
10551084
* Yes/No
10561085
* Currency
1086+
* Approval Status
10571087

10581088
```JSON
10591089
{

docs/general-development/save-download-and-upload-a-sharepoint-site-as-a-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Save, download, and upload a SharePoint site as a template
33
description: Learn how to design and build robust applications by using SharePoint site templates.
4-
ms.date: 12/14/2020
4+
ms.date: 11/16/2021
55
ms.prod: sharepoint
66
ms.assetid: 2e637172-ddac-4a70-bd77-55a1645a3db1
77
ms.localizationpriority: high
@@ -11,7 +11,7 @@ ms.localizationpriority: high
1111
> [!IMPORTANT]
1212
> The functionality of saving a site as a template described in this article is **only supported** in SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 **(classic sites only)**, and SharePoint Online **(classic sites only)**.
1313
>
14-
> It is **not supported** in SharePoint Online **(modern sites)** or SharePoint Server 2019 **(modern sites)**.
14+
> It is **not supported** in SharePoint Online **(modern sites)** or SharePoint Server 2019 **(modern sites)**. SharePoint Online environments should use the [new Site Templates](/sharepoint/dev/declarative-customization/site-design-overview).
1515
1616
Learn how to design and build robust applications by using SharePoint site templates.
1717

docs/spfx/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following table lists SharePoint Framework and compatible versions of common
3434

3535
| SPFx | Node.js | NPM | TypeScript | React |
3636
| ------------------------------- | ------------------------ | ----------------------------------------- | -------------- | ----------- |
37-
| [1.13.0](release-1.13.md) | LTS v10,LTS v12, LTS v14 | v5, v6 | v3.9 | v16.13.1 |
37+
| [1.13.0](release-1.13.md) | LTS v12, LTS v14 | v5, v6 | v3.9 | v16.13.1 |
3838
| [1.12.1](release-1.12.1.md) | LTS v10,LTS v12, LTS v14 | v5, v6 | v3.7 | v16.9.0 |
3939
| ~~[1.12.0](release-1.12.0.md)~~ | ~~LTS v12, LTS v10~~ | ~~v5, v6~~ | ~~v3.7~~ | ~~v16.9.0~~ |
4040
| [1.11.0](release-1.11.0.md) | LTS v10 | v5, v6 | v3.3 | v16.8.5 |

docs/spfx/debug-modern-pages.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Debug SharePoint Framework solutions on modern SharePoint pages
33
description: Guidance on how to debug SharePoint Framework solutions on modern SharePoint pages
4-
ms.date: 10/21/2020
4+
ms.date: 11/16/2020
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -96,7 +96,7 @@ To debug an Application Customizer, add the following to the URL of your modern
9696
> Line breaks & indentation have been added to the following snippet for readability. The following text should be on a single line with no whitespace.
9797
9898
```json
99-
`?loadSPFX=true
99+
?loadSPFX=true
100100
&debugManifestsFile=https://localhost:4321/temp/manifests.js
101101
&customActions={"<extensionId>":{
102102
"___location":"<extensionType>",
@@ -131,9 +131,9 @@ The `customActions` parameter has the following tokens that should be replaced:
131131

132132
| Token | Description |
133133
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
134-
| `<extensionId>` | Use the GUID of the extension as the key to associate with the custom action. This has to match the ID value of your extension, which is available in the extension manifest.json file. |
134+
| `<extensionId>` | Use the GUID of the extension as the key to associate with the custom action. This has to match the ID value of your extension, which is available in the extension **manifest.json** file. |
135135
| `<extensionType>` | The type of custom action. Use `ClientSideExtension.ApplicationCustomizer` for the Application Customizer extension. |
136-
| `<propertiesJSON>` | An optional JSON object that contains properties that are available via the this.properties member |
136+
| `<propertiesJSON>` | An optional JSON object that contains properties that are available via the `this.properties` member. |
137137

138138
With the parameters added to the URL, reload the page in the web browser. The page will show a popup asking you to confirm that you now will be loading debug scripts.
139139

@@ -180,7 +180,7 @@ Following are the query string parameters that you need to add:
180180
|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
181181
|`loadSPFX=true` |Ensures that the SharePoint Framework is loaded on the page. For performance reasons, the framework doesn't load unless at least one extension is registered. Because no components are registered, you must explicitly load the framework. |
182182
|`debugManifestsFile` |Specifies that you want to load components that are locally served. The loader only looks for components in the app catalog (for your deployed solution) and the SharePoint manifest server (for the system libraries). |
183-
|`fieldCustomizers` |indicates which fields in your list should have their rendering controlled by the Field Customizer. The ID parameter specifies the GUID of the extension that should be used to control the rendering of the field. The properties parameter is an optional text string containing a JSON object that is deserialized into `this.properties` for your extension.|
183+
|`fieldCustomizers` |Indicates which fields in your list should have their rendering controlled by the Field Customizer. The ID parameter specifies the GUID of the extension that should be used to control the rendering of the field. The properties parameter is an optional text string containing a JSON object that is deserialized into `this.properties` for your extension.|
184184

185185
The `fieldCustomizers` parameter has the following tokens that should be replaced:
186186

@@ -204,7 +204,7 @@ To debug a list view command set, add the following to the URL of your modern pa
204204
> Line breaks & indentation have been added to the following snippet for readability. The following text should be on a single line with no whitespace.
205205
206206
```json
207-
?loadSpfx=true
207+
?loadSPFX=true
208208
&debugManifestsFile=https://localhost:4321/temp/manifests.js
209209
&customActions={"<extensionId>":{
210210
"___location":"<extensionType>",
@@ -216,7 +216,7 @@ For example:
216216

217217
```text
218218
https://contoso.sharepoint.com/sites/team-a/Lists/Orders/AllItems.aspx
219-
?loadSpfx=true
219+
?loadSPFX=true
220220
&debugManifestsFile=https://localhost:4321/temp/manifests.js
221221
&customActions={"a8047e2f-30d5-40fc-b880-b2890c7c16d6":{
222222
"___location":"ClientSideExtension.ListViewCommandSet.CommandBar",
@@ -233,15 +233,15 @@ Following are the query string parameters that you need to add:
233233
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
234234
| `loadSPFX=true` | Ensures that the SharePoint Framework is loaded on the page. For performance reasons, the framework doesn't load unless at least one extension is registered. Because no components are registered, you must explicitly load the framework. |
235235
| `debugManifestsFile` | Specifies that you want to load components that are locally served. The loader only looks for components in the app catalog (for your deployed solution) and the SharePoint manifest server (for the system libraries). |
236-
| `customActions` | simulates a custom action. You can set many properties on this CustomAction object that affect the look, feel, and ___location of your button; well cover them all later. |
236+
| `customActions` | Simulates a custom action. You can set many properties on this CustomAction object that affect the look, feel, and ___location of your button; we'll cover them all later. |
237237

238238
The `customActions` parameter has the following tokens that should be replaced:
239239

240240
| Token | Description |
241241
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
242242
| `<extensionId>` | GUID of the extension. |
243243
| `<extensionType>` | Where the commands are displayed. The possible values are:<br/> `ClientSideExtension.ListViewCommandSet.ContextMenu`: The context menu of the item(s),<br/> `ClientSideExtension.ListViewCommandSet.CommandBar`: The top command set menu in a list or library.<br/> `ClientSideExtension.ListViewCommandSet`: Both the context menu and the command bar (corresponds to `SPUserCustomAction.Location="CommandUI.Ribbon"`). |
244-
| `<propertiesJSON>` | An optional JSON object containing properties that are available via the this.properties member. |
244+
| `<propertiesJSON>` | An optional JSON object containing properties that are available via the `this.properties` member. |
245245

246246
With the parameters added to the URL, reload the page in the web browser. The page will show a popup asking you to confirm that you now will be loading debug scripts.
247247

@@ -298,7 +298,7 @@ Using the SharePoint workbench, you can only test web parts from your solution.
298298

299299
## Debug SharePoint Framework web parts - an alternative approach
300300

301-
If you build your web part solution without the **--ship** argument as following
301+
If you build your web part solution without the **--ship** argument as following:
302302

303303
```console
304304
gulp bundle
@@ -307,13 +307,13 @@ gulp package-solution
307307

308308
the packages generated will reference the code from your local computer (https://localhost:4321). You can deploy the solution to the app catalog as you normally would.
309309

310-
You can then start your local server by running
310+
You can then start your local server by running:
311311

312312
```console
313313
gulp serve --nobrowser
314314
```
315315

316-
Now you can go back to a SharePoint site where the solution has been deployed and add the web parts to any page, modern or classic, and the web part code will be loaded from your local development environment. You can debug your web parts just as you would if you ran 'gulp serve' and added your web part to the workbench.
316+
Now you can go back to a SharePoint site where the solution has been deployed and add the web parts to any page, modern or classic, and the web part code will be loaded from your local development environment. You can debug your web parts just as you would if you ran **gulp serve** and added your web part to the workbench.
317317

318318
This approach should only be used when you're in development mode. If you deploy an app to the app catalog that points to your local host, it will fail to run if your development environment isn't running.
319319

docs/spfx/supported-extensibility-platforms-overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Supported extensibility platforms - overview
33
description: Learn what platforms support customizations and rely on the SharePoint Framework for their extensibility opportunities available to developers.
4-
ms.date: 09/08/2021
4+
ms.date: 11/16/2021
55
ms.prod: sharepoint
66
ms.localizationpriority: high
77
---
@@ -41,6 +41,6 @@ Learn more about using SPFx for Microsoft Teams: [SPFx support for Microsoft Tea
4141

4242
## Microsoft Viva Connections
4343

44-
Microsoft Viva Connections, your gateway to modern engagement experiences is designed to keep everyone in your organization engaged and informed. Viva Connections entirely relies on SharePoint for it's customization and extensibility story. This includes both the Viva Connections desktop and mobile experiences. Both of these experiences rely on the SPFx for all customizations.
44+
Microsoft Viva Connections, your gateway to modern engagement experiences is designed to keep everyone in your organization engaged and informed. Viva Connections entirely relies on SharePoint for its customization and extensibility story. This includes both the Viva Connections desktop and mobile experiences. Both of these experiences rely on the SPFx for all customizations.
4545

4646
Learn more about using SPFx on Viva Connections: [SPFx support for Viva Connections](viva/overview-viva-connections.md).

0 commit comments

Comments
 (0)