Cmdlets for Smartsheet

Build 24.0.8963

Update-Smartsheet Cmdlet

Parameters   Output Objects  

Updates Smartsheet data.

Syntax

Update-Smartsheet [parameters]

Remarks

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

$conn = Connect-Smartsheet -OAuthClientId 'MyOAuthClientId' -OAuthClientSecret 'MyOAuthClientSecret' -CallbackURL 'http://localhost:33333'
Update-Smartsheet -Connection $conn -Table "Sheet_Test_Sheet" -Columns @("Name") -Values @("Basic Project with Resource Management") -Id "123456"
The Where parameter can also be used to specify the primary key of the table:
Update-Smartsheet -Connection $conn -Table "Sheet_Test_Sheet" -Columns @("Name") -Values @("Basic Project with Resource Management") -Where "Id = '123456'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Smartsheet -Connection $conn -Table Sheet_Test_Sheet -Where "Favorite = 'True'" | Update-Smartsheet -Columns @("Favorite") -Values @("True 2")

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