Set Outlook Contact
Zuletzt geändert: 20.03.2026 21:17

Set-OutlookContact #

ÜBERSICHT #

Erstellt oder aktualisiert einen Outlook-Kontakt über die Microsoft Graph API.

SYNTAX #

Set-OutlookContact [-Token] <string> [-Contact] <hashtable> [[-FolderId] <string>] [[-UserEmail]
    <string>] [[-ExistingOutlookContact] <object>] [<CommonParameters>]

BESCHREIBUNG #

Upsert-Funktion: Prüft via Get-OutlookContact, ob bereits ein Kontakt mit passender EULANDA Open Extension existiert. Falls ja, wird er aktualisiert (PATCH), sonst neu angelegt (POST). Die Open Extension “com.eulanda.contact” wird bei jedem Vorgang mitgeschrieben.

PARAMETER #

-Token #

Type: string

Bearer-Token für die Graph API (von Get-GraphToken).

-Contact #

Type: hashtable

Hashtable mit den Kontaktdaten aus Get-ContactData.

-FolderId #

Type: string

ID des Kontaktordners. Wenn nicht angegeben, wird der Standard-Ordner verwendet.

-UserEmail #

Type: string

E-Mail-Adresse des Postfachs (nur Service-Flow).

AUSGABEN #

pscustomobject

Das erstellte oder aktualisierte Outlook-Kontakt-Objekt.

BEISPIELE #

$outlookContact = Set-OutlookContact -Token $token -Contact $contactData -FolderId $folderId