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: powerapps-docs/developer/data-platform/webapi/use-ps-and-vscode-web-api.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,9 @@ Let's put the code to authenticate to Dataverse in a function called `Connect` i
92
92
93
93
`. $PSScriptRoot\Core.ps1` at the top of the file uses [dot sourcing](/powershell/module/microsoft.powershell.core/about/about_scripts#script-scope-and-dot-sourcing) to direct the script to load the contents of that file.
94
94
95
-
Remember to change `yourorg` in `https://yourorg.crm.dynamics.com/` to match the URL for your environment.
95
+
Remember to change `https://yourorg.crm.dynamics.com/` to match the URL for your environment.
96
96
97
-
1. To run the script, press `F5`.
97
+
1. To run the script, press <kbd>F5</kbd>.
98
98
99
99
The output might look similar to this output:
100
100
@@ -145,7 +145,7 @@ Let's put the code to invoke the [WhoAmI function](xref:Microsoft.Dynamics.CRM.W
145
145
146
146
Remember to change the `https://yourorg.crm.dynamics.com/` value to match the URL for your environment.
147
147
148
-
1. To run the script, press `F5`.
148
+
1. To run the script, press <kbd>F5</kbd>.
149
149
150
150
The output should look exactly like it did before.
151
151
@@ -350,7 +350,7 @@ Let's put functions to perform common table operations a file named `TableOperat
350
350
351
351
Remember to change the `https://yourorg.crm.dynamics.com/` value to match the URL for your environment.
352
352
353
-
1. To run the script, press `F5`.
353
+
1. To run the script, press <kbd>F5</kbd>.
354
354
355
355
The output might look similar to this output:
356
356
@@ -451,7 +451,7 @@ Add a helper function that can help detect the source of the errors and extract
451
451
452
452
Remember to change the `https://yourorg.crm.dynamics.com/` value to match the URL for your environment.
453
453
454
-
1. To run the script, press `F5`.
454
+
1. To run the script, press <kbd>F5</kbd>.
455
455
456
456
The output might look similar to this output:
457
457
@@ -479,7 +479,7 @@ Add a helper function that can help detect the source of the errors and extract
479
479
}
480
480
```
481
481
482
-
1. To run the script, press `F5`.
482
+
1. To run the script, press <kbd>F5</kbd>.
483
483
484
484
The output should be almost the same as if it wasn't included in the `Invoke-DataverseCommands` block:
485
485
@@ -495,7 +495,7 @@ Add a helper function that can help detect the source of the errors and extract
495
495
496
496
## Manage Dataverse service protection limits
497
497
498
-
[Dataverse Service protection API limits](../api-limits.md) help ensure that Dataverse provides consistent availability and performance. When client applications make extraordinary demands on server resources using the Web API, Dataverse returns [429 Too Many Requests](https://developer.mozilla.org/docs/Web/HTTP/Status/429) errors and the client application must pause operations for the duration specified in the [Retry-After header](https://developer.mozilla.org/docs/Web/HTTP/Headers/Retry-After).
498
+
[Dataverse Service protection API limits](../api-limits.md) help ensure that Dataverse provides consistent availability and performance. When client applications make extraordinary demands on server resources using the Web API, Dataverse returns [429 Too Many Requests](https://developer.mozilla.org/docs/Web/HTTP/Status/429) errors and client applications must pause operations for the duration specified in the [Retry-After header](https://developer.mozilla.org/docs/Web/HTTP/Headers/Retry-After).
499
499
500
500
The PowerShell [Invoke-RestMethod cmdlet](/powershell/module/microsoft.powershell.utility/invoke-restmethod)[MaximumRetryCount parameter](/powershell/module/microsoft.powershell.utility/invoke-restmethod#-maximumretrycount) specifies how many times PowerShell retries a request when a failure code is between 400 and 599, inclusive or 304 is received. This means PowerShell retries Dataverse service protection 429 errors when you include a value for this parameter. The `MaximumRetryCount` parameter can be used with the [RetryIntervalSec](/powershell/module/microsoft.powershell.utility/invoke-restmethod#-retryintervalsec) to specify the number of seconds to wait. The default is 5 seconds. If the error response includes a `Retry-After` header for a 429 error, as Dataverse service protection errors do, that value is used instead.
501
501
@@ -769,7 +769,7 @@ This section contains some guidance for issues you might encounter.
769
769
770
770
This error might occur when debugging with Visual Studio Code. To resolve the error:
771
771
772
-
1. Select **View** > **Command Palette...** from the Visual Studio Code menu, or press `Ctrl` + `Shift` + `P`.
772
+
1. Select **View** > **Command Palette...** from the Visual Studio Code menu, or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>.
773
773
1. Type `restart` and select `Powershell: Restart session`. See [PowerShell/vscode-powershell GitHub Issue 4332](https://github.com/PowerShell/vscode-powershell/issues/4332) for more information.
0 commit comments