Cmdlets for Microsoft Teams

Build 24.0.9060

Update-MSTeams Cmdlet

Parameters   Output Objects  

Updates Microsoft Teams data.

Syntax

Update-MSTeams [parameters]

Remarks

The Update-MSTeams cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Microsoft Teams data.

$conn = Connect-MSTeams -InitiateoAuth "GETANDREFRESH"
Update-MSTeams -Connection $conn -Table "Teams" -Columns @("location_displayName") -Values @("Town Hall Grille") -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key of the table:
Update-MSTeams -Connection $conn -Table "Teams" -Columns @("location_displayName") -Values @("Town Hall Grille") -Where "Id = 'Jq74mCczmFXk1tC10GB'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-MSTeams -Connection $conn -Table Teams -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Update-MSTeams -Columns @("Id") -Values @("Jq74mCczmFXk1tC10GB 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060