functions/private/Get-ChurchActionInterviewList.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Get-ChurchActionInterviewList {
    param (
        [psobject] $Session,
        [int] $UnitNumber
    )
    $params = @{
        Uri         = (Get-ChurchConfig -Action "ActionInterviewList") -f $UnitNumber
        WebSession  = $Session
        Method      = "Get"
        ContentType = "application/json"
    }
    $response = Invoke-ChurchWebRequest @params
    return $response.Content;
}