Public/Get-AeriesSectionRosterDataChanges.ps1
function Get-AeriesSectionRosterDataChanges { <# .SYNOPSIS Get Section Roster Data Changes from Aeries .DESCRIPTION The Get-AeriesSectionRosterDataChanges cmdlet is used to retrieve all Section Roster Data Changes from Aeries since a given date .EXAMPLE Get-AeriesSectionRosterDataChanges -DateTime (Get-Date "2021-04-09 9:00AM") This will return the requested Section Roster Data Changes from Aeries #> [CmdletBinding()] param ( # Date Object to use for filters [Parameter(Mandatory=$true)] [datetime] $DateTime ) Begin { Write-Verbose -Message "Begin running $($MyInvocation.MyCommand)" $Method = "Get" $SuccessStatusCode = 200 $Endpoint = "v5/SectionRosterDataChanges/" + $DateTime.ToString("yyyy/MM/dd/HH/mm") } Process { $Result = (Invoke-AeriesApiCall -Method $Method -Endpoint $Endpoint -SuccessStatusCode $SuccessStatusCode) } End { Write-Verbose -Message "Finish running $($MyInvocation.MyCommand)" return $Result } } |