This article describes a function of a custom SharePoint Online module available for download and installation here.

SPOMod found recently a new home on GitHub where it welcomes all your suggestions and contributions.



Approve-SPOFile

Approves a file.

Parameters

ServerRelativeUrl  Mandatory  Relative url of the file.
     
 

Examples

----- EXAMPLE 1 ------
Approve-SPOFile -ServerRelativeUrl "/sites/TestingSite/lib/Document1.docx" -ApprovalComment "Approved via Powershell"




See Also

SPOMod Cmdlets and Resources 
Connect-SPOCSOM
Get-SPOList

Set-SPOFileCheckout
Set-SPOFileCheckin

Deny-SPOFileApproval