Cmdlets for Microsoft Office 365

Build 24.0.9060

Update-Office365 Cmdlet

Parameters   Output Objects  

Updates Microsoft Office 365 data.

Syntax

Update-Office365 [parameters]

Remarks

The Update-Office365 cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Microsoft Office 365 data.

$conn = Connect-Office365 -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -CallbackURL 'http://localhost:33333'
Update-Office365 -Connection $conn -Table "Events" -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-Office365 -Connection $conn -Table "Events" -Columns @("location_displayName") -Values @("Town Hall Grille") -Where "Id = 'Jq74mCczmFXk1tC10GB'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Office365 -Connection $conn -Table Events -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Update-Office365 -Columns @("Id") -Values @("Jq74mCczmFXk1tC10GB 2")

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