Functions/Get-ExchangeOnlineContactPropertyList.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#
.SYNOPSIS
    This function returns a list of the properties present in an Exchange Online contact object.
#>

function Get-ExchangeOnlineContactPropertyList {
    [CmdletBinding(PositionalBinding=$false)]
    [OutputType([String[]])]
    param ()

    # Return the list of properties
    return @(
        "FirstName",
        "LastName",
        "Company",
        "Phone",
        "MobilePhone",
        "Title",
        "WebPage",
        "Fax",
        "StreetAddress",
        "City",
        "StateOrProvince",
        "PostalCode",
        "CountryOrRegion"
    )
}