Skip to content

Commit 768e04f

Browse files
authored
Update powerapps-powershell.md
Adding documentation for a few Power Apps admin cmdlets added in the fall which has a growing number of tenants using.
1 parent 66b7147 commit 768e04f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

power-platform/admin/powerapps-powershell.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,30 @@ Get-AdminRecoverDeletedPowerApp -AppName 'AppName' -EnvironmentName 'Environment
318318

319319
This recovers a canvas app that is discoverable via Get-AdminDeletedPowerAppsList cmdlet. Any canvas app that isn't displayed in Get-AdminDeletedPowerAppsList isn't recoverable.
320320

321+
#### Designate SharePoint custom form environment
322+
323+
The following cmdlets can be used to specify and verify which environment SharePoint custom forms are saved to, instead of the default environment. When the designated environment for SharePoint custom forms changes, this is the environment where newly created custom forms are saved. Existing custom forms do not automatically migrate to different environments as these cmdlets are used. The ability for a user to create a custom form in a designated environment requires that user to have the Environment Maker role. Users can be granted the Environment Maker role in https://admin.powerplatform.microsoft.com).
324+
325+
Note, any environment which isn’t the default environment, can be deleted. If the designated SharePoint custom form environment is deleted the custom forms are deleted with it.
326+
327+
```powershell
328+
Get-AdminPowerAppSharepointFormEnvironment 
329+
```
330+
331+
This returns the EnvironmentName for the environment currently designated for newly created SharePoint custom forms. If an environment has never been designated, the default environment is returned.
332+
333+
```powershell
334+
Set-AdminPowerAppSharepointFormEnvironment –EnvironmentName 'EnvironmentName'
335+
```
336+
337+
This designates the environment newly created SharePoint custom forms save to, instead of the default environment. Existing custom forms do not automatically migrate to the newly designated environment. Only production environments may be designated for SharePoint custom forms.
338+
339+
```powershell
340+
Reset-AdminPowerAppSharepointFormEnvironment
341+
```
342+
343+
This resets the default environment as the designated environment to save SharePoint custom forms.
344+
321345
### Power Automate commands
322346

323347
Use these commands to view and modify data related to Power Automate.

0 commit comments

Comments
 (0)