Archiving SharePoint Online Site #1507
-
I am trying to find a pnp.core code equivelant to the PowerShell commandlet "Set-PNPSiteArchiveState". Is there a supported way to do this in c#? I have tried simple restful call with bearer token but always get "unauthorized" as response.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@EdAlexander : we would need to either implement the needed REST calls or "wrap" the relevant CSOM commands Tenant.ArchiveSite and Tenant.UnArchiveSite (https://github.com/pnp/powershell/blob/43dc32f39938814c7581706fe8de2b7899a2e61c/src/Commands/Admin/SetSiteArchiveState.cs#L12) into the Admin library to realize this feature. I'll transfer this to the issue list to track that ask. |
Beta Was this translation helpful? Give feedback.
@EdAlexander : we would need to either implement the needed REST calls or "wrap" the relevant CSOM commands Tenant.ArchiveSite and Tenant.UnArchiveSite (https://github.com/pnp/powershell/blob/43dc32f39938814c7581706fe8de2b7899a2e61c/src/Commands/Admin/SetSiteArchiveState.cs#L12) into the Admin library to realize this feature. I'll transfer this to the issue list to track that ask.