pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Add-PnPApp is not available for SharePoint 2016 #1617

Open shurick81 opened 6 years ago

shurick81 commented 6 years ago

Reporting an Issue or Missing Feature

Missing command when using SharePointPnPPowerShell2016

Expected behavior

Add-PnPApp command should be available.

Actual behavior

Command is not listed

Steps to reproduce behavior

(get-module SharePointPnPPowerShell2016 -ListAvailable).exportedcommands it works with SharePointPnPPowerShellOnline, but not with 2016

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

2.27.1806.1

How did you install the PnP-PowerShell Cmdlets?

KoenZomers commented 6 years ago

Have you tried if the API even exists on SharePoint 2016? You can do this easily by opening a clean PowerShell window and running import-module SharePointPnPPowerShellOnline. Now execute your desired commands against your SharePoint 2016 environment and see if they work. If so, we can simply also add the command to the 2016 version of the module. If not, then the APIs most likely don't exist on the SharePoint side thus we can't add the commands for it.

Link631 commented 4 years ago

The commands could still be added by using upload functionalities to the app catalog: upload the package file to the library Get xml content from the uploaded file via Get-Content Set the xml mappings Post request with mappings as body to _vti_bin/client.svc/ProcessQuery